Class PolygonBuilder
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.PolygonBuilder
-
public class PolygonBuilder extends Object
FormsPolygon
s out of a graph ofDirectedEdge
s. The edges to use are marked as being in the result Area.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description PolygonBuilder(GeometryFactory geometryFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Collection dirEdges, Collection nodes)
Add a set of edges and nodes, which form a graph.void
add(PlanarGraph graph)
Add a complete graph.List
getPolygons()
-
-
-
Constructor Detail
-
PolygonBuilder
public PolygonBuilder(GeometryFactory geometryFactory)
-
-
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(Collection dirEdges, 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 List getPolygons()
-
-