org.esa.beam.util
Class AwtGeomToJtsGeomConverter

java.lang.Object
  extended by org.esa.beam.util.AwtGeomToJtsGeomConverter

public class AwtGeomToJtsGeomConverter
extends Object


Constructor Summary
AwtGeomToJtsGeomConverter()
           
AwtGeomToJtsGeomConverter(com.vividsolutions.jts.geom.GeometryFactory geometryFactory, double flatness)
          Contructor.
 
Method Summary
 List<com.vividsolutions.jts.geom.LinearRing> createLinearRingList(Shape shape)
           
 List<com.vividsolutions.jts.geom.LineString> createLineStringList(Shape geometry)
           
 com.vividsolutions.jts.geom.MultiLineString createMultiLineString(Shape shape)
           
 com.vividsolutions.jts.geom.MultiPolygon createMultiPolygon(Shape shape)
           
 List<List<com.vividsolutions.jts.geom.Coordinate>> createPathList(Shape shape, boolean forceClosedPaths)
           
 com.vividsolutions.jts.geom.Point createPoint(Point2D point)
           
 com.vividsolutions.jts.geom.Polygon createPolygon(Shape shape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwtGeomToJtsGeomConverter

public AwtGeomToJtsGeomConverter()

AwtGeomToJtsGeomConverter

public AwtGeomToJtsGeomConverter(com.vividsolutions.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 com.vividsolutions.jts.geom.Point createPoint(Point2D point)

createMultiLineString

public com.vividsolutions.jts.geom.MultiLineString createMultiLineString(Shape shape)

createPolygon

public com.vividsolutions.jts.geom.Polygon createPolygon(Shape shape)

createMultiPolygon

public com.vividsolutions.jts.geom.MultiPolygon createMultiPolygon(Shape shape)

createLinearRingList

public List<com.vividsolutions.jts.geom.LinearRing> createLinearRingList(Shape shape)

createLineStringList

public List<com.vividsolutions.jts.geom.LineString> createLineStringList(Shape geometry)

createPathList

public List<List<com.vividsolutions.jts.geom.Coordinate>> createPathList(Shape shape,
                                                                         boolean forceClosedPaths)


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.