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 TypeMethodDescriptionvoidvoidCompute a LinearRing from the point list previously collected.booleanThis method will cause the ring to be computed.getCoordinate(int i) getEdges()Returns the list of DirectedEdges that make up this EdgeRinggetLabel()intabstract DirectedEdgegetNext(DirectedEdge de) getShell()booleanisHole()booleanbooleanisShell()abstract voidsetEdgeRing(DirectedEdge de, EdgeRing er) voidvoidtoPolygon(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
-