Class FixingGeometryFactory
- java.lang.Object
-
- org.locationtech.jts.geom.GeometryFactory
-
- org.locationtech.jtsexample.io.gml2.FixingGeometryFactory
-
- All Implemented Interfaces:
java.io.Serializable
class FixingGeometryFactory extends GeometryFactory
A GeometryFactory extension which fixes structurally bad coordinate sequences used to create LinearRings.
-
-
Constructor Summary
Constructors Constructor Description FixingGeometryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinearRing
createLinearRing(CoordinateSequence cs)
Creates aLinearRing
using the givenCoordinateSequence
.-
Methods inherited from class org.locationtech.jts.geom.GeometryFactory
buildGeometry, createGeometry, createGeometryCollection, createGeometryCollection, createLinearRing, createLinearRing, createLineString, createLineString, createLineString, createMultiLineString, createMultiLineString, createMultiPoint, createMultiPoint, createMultiPoint, createMultiPoint, createMultiPointFromCoords, createMultiPolygon, createMultiPolygon, createPoint, createPoint, createPoint, createPointFromInternalCoord, createPolygon, createPolygon, createPolygon, createPolygon, createPolygon, getCoordinateSequenceFactory, getPrecisionModel, getSRID, toGeometry, toGeometryArray, toLinearRingArray, toLineStringArray, toMultiLineStringArray, toMultiPointArray, toMultiPolygonArray, toPointArray, toPolygonArray
-
-
-
-
Method Detail
-
createLinearRing
public LinearRing createLinearRing(CoordinateSequence cs)
Description copied from class:GeometryFactory
Creates aLinearRing
using the givenCoordinateSequence
. A null or empty array creates an empty LinearRing. The points must form a closed and simple linestring.- Overrides:
createLinearRing
in classGeometryFactory
- Parameters:
cs
- a CoordinateSequence (possibly empty), or null- Returns:
- the created LinearRing
-
-