Class GeometryConverter
java.lang.Object
org.openjump.core.geomutils.algorithm.GeometryConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<org.locationtech.jts.geom.Geometry> explodeGeomsIfMultiG(org.locationtech.jts.geom.Geometry geom) The method explodes a geometry, if it is a multi-geometry (Geometry Collection), into their parts.static ArrayListtransformPolygonToLineStrings(org.locationtech.jts.geom.Geometry polygon)
-
Constructor Details
-
GeometryConverter
public GeometryConverter()
-
-
Method Details
-
transformPolygonToLineStrings
- Parameters:
polygon- a Polygon or MultiPolygon- Returns:
- if the input Geometry is neither a Polygon nor a MultiPolygon it is returned
-
explodeGeomsIfMultiG
public static ArrayList<org.locationtech.jts.geom.Geometry> explodeGeomsIfMultiG(org.locationtech.jts.geom.Geometry geom) The method explodes a geometry, if it is a multi-geometry (Geometry Collection), into their parts.- Parameters:
geom- the geometry to explode- Returns:
- a list of geometries
-