Class EdgeRing
java.lang.Object
org.locationtech.jts.geomgraph.EdgeRing
- Direct Known Subclasses:
MaximalEdgeRing, MinimalEdgeRing
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected voidcomputePoints(DirectedEdge start) Collect all the points from the DirectedEdges of this ring into a contiguous listvoidCompute 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()protected voidmergeLabel(Label deLabel) protected voidmergeLabel(Label deLabel, int geomIndex) Merge the RHS label from a DirectedEdge into the label for this EdgeRing.abstract voidsetEdgeRing(DirectedEdge de, EdgeRing er) voidvoidtoPolygon(GeometryFactory geometryFactory)
-
Field Details
-
startDe
-
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
-
computePoints
Collect all the points from the DirectedEdges of this ring into a contiguous list -
getMaxNodeDegree
public int getMaxNodeDegree() -
setInResult
public void setInResult() -
mergeLabel
-
mergeLabel
Merge the RHS label from a DirectedEdge into the label for this EdgeRing. The DirectedEdge label may be null. This is acceptable - it results from a node which is NOT an intersection node between the Geometries (e.g. the end node of a LinearRing). In this case the DirectedEdge label does not contribute any information to the overall labelling, and is simply skipped. -
addPoints
-
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
-