Package org.locationtech.jts.geomgraph
Class EdgeRing
java.lang.Object
org.locationtech.jts.geomgraph.EdgeRing
- Direct Known Subclasses:
MaximalEdgeRing
,MinimalEdgeRing
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Compute a LinearRing from the point list previously collected.boolean
This method will cause the ring to be computed.getCoordinate
(int i) getEdges()
Returns the list of DirectedEdges that make up this EdgeRinggetLabel()
int
abstract DirectedEdge
getNext
(DirectedEdge de) getShell()
boolean
isHole()
boolean
boolean
isShell()
abstract void
setEdgeRing
(DirectedEdge de, EdgeRing er) void
void
toPolygon
(GeometryFactory geometryFactory)
-
Constructor Details
-
EdgeRing
-
-
Method Details
-
isIsolated
public boolean isIsolated() -
isHole
public boolean isHole() -
getCoordinate
-
getLinearRing
-
getLabel
-
isShell
public boolean isShell() -
getShell
-
setShell
-
addHole
-
toPolygon
-
computeRing
public void computeRing()Compute a LinearRing from the point list previously collected. Test if the ring is a hole (i.e. if it is CCW) and set the hole flag accordingly. -
getNext
-
setEdgeRing
-
getEdges
Returns the list of DirectedEdges that make up this EdgeRing- Returns:
- List of DirectedEdges
-
getMaxNodeDegree
public int getMaxNodeDegree() -
setInResult
public void setInResult() -
containsPoint
This method will cause the ring to be computed. It will also check any holes, if they have been assigned.- Parameters:
p
- point- Returns:
- true of ring contains point
-