Class MaximalEdgeRing
- java.lang.Object
-
- org.locationtech.jts.geomgraph.EdgeRing
-
- org.locationtech.jts.operation.overlay.MaximalEdgeRing
-
public class MaximalEdgeRing extends EdgeRing
A ring ofDirectedEdge
s 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,
MinimalEdgeRing
s are required. A MaximalEdgeRing can be converted to a list of MinimalEdgeRings using thebuildMinimalRings()
method.- Version:
- 1.7
- See Also:
MinimalEdgeRing
-
-
Constructor Summary
Constructors Constructor Description MaximalEdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
buildMinimalRings()
DirectedEdge
getNext(DirectedEdge de)
void
linkDirectedEdgesForMinimalEdgeRings()
For all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRingsvoid
setEdgeRing(DirectedEdge de, EdgeRing er)
-
Methods inherited from class org.locationtech.jts.geomgraph.EdgeRing
addHole, computeRing, containsPoint, getCoordinate, getEdges, getLabel, getLinearRing, getMaxNodeDegree, getShell, isHole, isIsolated, isShell, setInResult, setShell, toPolygon
-
-
-
-
Constructor Detail
-
MaximalEdgeRing
public MaximalEdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
-
-
Method Detail
-
getNext
public DirectedEdge getNext(DirectedEdge de)
-
setEdgeRing
public void setEdgeRing(DirectedEdge de, EdgeRing er)
- Specified by:
setEdgeRing
in classEdgeRing
-
linkDirectedEdgesForMinimalEdgeRings
public void linkDirectedEdgesForMinimalEdgeRings()
For all nodes in this EdgeRing, link the DirectedEdges at the node to form minimalEdgeRings
-
buildMinimalRings
public java.util.List buildMinimalRings()
-
-