Package org.locationtech.jts.noding
Class SegmentNodeList
java.lang.Object
org.locationtech.jts.noding.SegmentNodeList
A list of the
SegmentNode
s present along a noded SegmentString
.- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(Coordinate intPt, int segmentIndex) Adds an intersection into the list, if it isn't already there.void
addSplitEdges
(Collection edgeList) Creates new edges for all the edges that the intersections in this list split the parent edge into.getEdge()
Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list.iterator()
returns an iterator of SegmentNodesvoid
print
(PrintStream out) int
size()
Gets the number of nodes in the list
-
Constructor Details
-
SegmentNodeList
-
-
Method Details
-
size
public int size()Gets the number of nodes in the list- Returns:
- the size of the list
-
getEdge
-
add
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.- Returns:
- the SegmentIntersection found or added
-
iterator
returns an iterator of SegmentNodes -
addSplitEdges
Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the provided argument list (this is so a single list can be used to accumulate all split edges for a set ofSegmentString
s). -
getSplitCoordinates
Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list. Repeated coordinates are collapsed.- Returns:
- an array of Coordinates
-
print
-