org.geotools.geometry.iso.operation.overlay
Class PolygonBuilder

java.lang.Object
  extended by org.geotools.geometry.iso.operation.overlay.PolygonBuilder

public class PolygonBuilder
extends java.lang.Object

Forms Surfaces out of a graph of DirectedEdges. The edges to use are marked as being in the result Area.


Constructor Summary
PolygonBuilder(org.opengis.referencing.crs.CoordinateReferenceSystem crs, CGAlgorithms cga)
           
 
Method Summary
 void add(java.util.Collection dirEdges, java.util.Collection nodes)
          Add a set of edges and nodes, which form a graph.
 void add(PlanarGraph graph)
          Add a complete graph.
 boolean containsPoint(Coordinate p)
          Checks the current set of shells (with their associated holes) to see if any of them contain the point.
 java.util.List getPolygons()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonBuilder

public PolygonBuilder(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                      CGAlgorithms cga)
Method Detail

add

public void add(PlanarGraph graph)
Add a complete graph. The graph is assumed to contain one or more polygons, possibly with holes.


add

public void add(java.util.Collection dirEdges,
                java.util.Collection nodes)
Add a set of edges and nodes, which form a graph. The graph is assumed to contain one or more polygons, possibly with holes.


getPolygons

public java.util.List getPolygons()
Returns:

containsPoint

public boolean containsPoint(Coordinate p)
Checks the current set of shells (with their associated holes) to see if any of them contain the point.



Copyright © 1996-2010 Geotools. All Rights Reserved.