Package org.locationtech.jts.geomgraph
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 TypeMethodDescriptionvoid
protected void
protected void
computePoints
(DirectedEdge start) Collect all the points from the DirectedEdges of this ring into a contiguous listvoid
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()
protected void
mergeLabel
(Label deLabel) protected void
mergeLabel
(Label deLabel, int geomIndex) Merge the RHS label from a DirectedEdge into the label for this EdgeRing.abstract void
setEdgeRing
(DirectedEdge de, EdgeRing er) void
void
toPolygon
(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
-