Class MaximalEdgeRing
java.lang.Object
org.locationtech.jts.geomgraph.EdgeRing
org.locationtech.jts.operation.overlay.MaximalEdgeRing
A ring of
DirectedEdges which may contain nodes of degree > 2.
A MaximalEdgeRing may represent two different spatial entities:
- a single polygon possibly containing inversions (if the ring is oriented CW)
- a single hole possibly containing exversions (if the ring is oriented CCW)
These are the form of rings used to define polygons under some spatial data models.
However, under the OGC SFS model, MinimalEdgeRings are required.
A MaximalEdgeRing can be converted to a list of MinimalEdgeRings using the
buildMinimalRings() method.
- Version:
- 1.7
- See Also:
-
Field Summary
Fields inherited from class EdgeRing
geometryFactory, startDe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext(DirectedEdge de) voidFor all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRingsvoidsetEdgeRing(DirectedEdge de, EdgeRing er) Methods inherited from class EdgeRing
addHole, addPoints, computePoints, computeRing, containsPoint, getCoordinate, getEdges, getLabel, getLinearRing, getMaxNodeDegree, getShell, isHole, isIsolated, isShell, mergeLabel, mergeLabel, setInResult, setShell, toPolygon
-
Constructor Details
-
MaximalEdgeRing
-
-
Method Details
-
getNext
-
setEdgeRing
- Specified by:
setEdgeRingin classEdgeRing
-
linkDirectedEdgesForMinimalEdgeRings
public void linkDirectedEdgesForMinimalEdgeRings()For all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRings -
buildMinimalRings
-