org.openjump.core.geomutils.algorithm
Class GeometryConverter

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

public class GeometryConverter
extends java.lang.Object


Constructor Summary
GeometryConverter()
           
 
Method Summary
static java.util.ArrayList<com.vividsolutions.jts.geom.Geometry> explodeGeomsIfMultiG(com.vividsolutions.jts.geom.Geometry geom)
          The method explodes a geometry, if it is a multi-geometry (Geometry Collection), into their parts.
static java.util.ArrayList transformPolygonToLineStrings(com.vividsolutions.jts.geom.Geometry polygon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryConverter

public GeometryConverter()
Method Detail

transformPolygonToLineStrings

public static java.util.ArrayList transformPolygonToLineStrings(com.vividsolutions.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 java.util.ArrayList<com.vividsolutions.jts.geom.Geometry> explodeGeomsIfMultiG(com.vividsolutions.jts.geom.Geometry geom)
The method explodes a geometry, if it is a multi-geometry (Geometry Collection), into their parts.

Parameters:
geom -
Returns: