Class GeometryConverter

java.lang.Object
org.openjump.core.geomutils.algorithm.GeometryConverter

public class GeometryConverter extends Object
  • Constructor Details

    • GeometryConverter

      public GeometryConverter()
  • Method Details

    • transformPolygonToLineStrings

      public static ArrayList transformPolygonToLineStrings(org.locationtech.jts.geom.Geometry polygon)
      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