Class FixingGeometryFactory
java.lang.Object
org.locationtech.jts.geom.GeometryFactory
org.locationtech.jtsexample.io.gml2.FixingGeometryFactory
- All Implemented Interfaces:
Serializable
A GeometryFactory extension which fixes structurally bad coordinate sequences
used to create LinearRings.
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
FixingGeometryFactory
FixingGeometryFactory()
-
-
Method Details
-
createLinearRing
Description copied from class:GeometryFactoryCreates aLinearRingusing the givenCoordinateSequence. A null or empty array creates an empty LinearRing. The points must form a closed and simple linestring.- Overrides:
createLinearRingin classGeometryFactory- Parameters:
cs- a CoordinateSequence (possibly empty), or null- Returns:
- the created LinearRing
-