Package org.esa.snap.core.util
Class AwtGeomToJtsGeomConverter
- java.lang.Object
-
- org.esa.snap.core.util.AwtGeomToJtsGeomConverter
-
public class AwtGeomToJtsGeomConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description AwtGeomToJtsGeomConverter()
AwtGeomToJtsGeomConverter(org.locationtech.jts.geom.GeometryFactory geometryFactory, double flatness)
Contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.locationtech.jts.geom.LinearRing>
createLinearRingList(Shape shape)
List<org.locationtech.jts.geom.LineString>
createLineStringList(Shape geometry)
org.locationtech.jts.geom.MultiLineString
createMultiLineString(Shape shape)
org.locationtech.jts.geom.MultiPolygon
createMultiPolygon(Shape shape)
List<List<org.locationtech.jts.geom.Coordinate>>
createPathList(Shape shape, boolean forceClosedPaths)
org.locationtech.jts.geom.Point
createPoint(Point2D point)
org.locationtech.jts.geom.Polygon
createPolygon(Shape shape)
-
-
-
Constructor Detail
-
AwtGeomToJtsGeomConverter
public AwtGeomToJtsGeomConverter()
-
AwtGeomToJtsGeomConverter
public AwtGeomToJtsGeomConverter(org.locationtech.jts.geom.GeometryFactory geometryFactory, double flatness)
Contructor.- Parameters:
geometryFactory
- The geometry factory.flatness
- Used to decompose curved shapes into linear segments. If less than or equal to zero, then actual flatness will be computed from shape bounds.
-
-
Method Detail
-
createPoint
public org.locationtech.jts.geom.Point createPoint(Point2D point)
-
createMultiLineString
public org.locationtech.jts.geom.MultiLineString createMultiLineString(Shape shape)
-
createPolygon
public org.locationtech.jts.geom.Polygon createPolygon(Shape shape)
-
createMultiPolygon
public org.locationtech.jts.geom.MultiPolygon createMultiPolygon(Shape shape)
-
createLinearRingList
public List<org.locationtech.jts.geom.LinearRing> createLinearRingList(Shape shape)
-
createLineStringList
public List<org.locationtech.jts.geom.LineString> createLineStringList(Shape geometry)
-
-