|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.polygonize.Polygonizer
Polygonizes a set of Geometrys which contain linework that represents the edges of a planar graph. Any dimension of Geometry is handled - the constituent linework is extracted to form the edges. The edges must be correctly noded; that is, they must only meet at their endpoints. The Polygonizer will still run on incorrectly noded input but will not form polygons from incorrected noded edges.
The Polygonizer reports the follow kinds of errors:
Field Summary | |
protected java.util.List |
cutEdges
|
protected java.util.Collection |
dangles
|
protected com.vividsolutions.jts.operation.polygonize.PolygonizeGraph |
graph
|
protected java.util.List |
holeList
|
protected java.util.List |
invalidRingLines
|
protected java.util.List |
polyList
|
protected java.util.List |
shellList
|
Constructor Summary | |
Polygonizer()
Create a polygonizer with the same GeometryFactory
as the input Geometry s |
Method Summary | |
void |
add(java.util.Collection geomList)
Add a collection of geometries to be polygonized. |
void |
add(Geometry g)
Add a geometry to the linework to be polygonized. |
java.util.Collection |
getCutEdges()
Get the list of cut edges found during polygonization. |
java.util.Collection |
getDangles()
Get the list of dangling lines found during polygonization. |
java.util.Collection |
getInvalidRingLines()
Get the list of lines forming invalid rings found during polygonization. |
java.util.Collection |
getPolygons()
Gets the list of polygons formed by the polygonization. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.vividsolutions.jts.operation.polygonize.PolygonizeGraph graph
protected java.util.Collection dangles
protected java.util.List cutEdges
protected java.util.List invalidRingLines
protected java.util.List holeList
protected java.util.List shellList
protected java.util.List polyList
Constructor Detail |
public Polygonizer()
GeometryFactory
as the input Geometry
s
Method Detail |
public void add(java.util.Collection geomList)
geomList
- a list of Geometry
s with linework to be polygonizedpublic void add(Geometry g)
g
- a Geometry
with linework to be polygonizedpublic java.util.Collection getPolygons()
Polygons
public java.util.Collection getDangles()
public java.util.Collection getCutEdges()
public java.util.Collection getInvalidRingLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |