Class EdgeIntersectionList
java.lang.Object
org.locationtech.jts.geomgraph.EdgeIntersectionList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Coordinate intPt, int segmentIndex, double dist) Adds an intersection into the list, if it isn't already there.voidAdds entries for the first and last points of the edge to the listvoidaddSplitEdges(List edgeList) Creates new edges for all the edges that the intersections in this list split the parent edge into.booleanTests if the given point is an edge intersectioniterator()Returns an iterator ofEdgeIntersectionsvoidprint(PrintStream out)
-
Constructor Details
-
EdgeIntersectionList
-
-
Method Details
-
add
Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.- Parameters:
intPt- Point of intersectionsegmentIndex- Index of the containing line segment in the parent edgedist- Edge distance of this point along the containing line segment- Returns:
- the EdgeIntersection found or added
-
iterator
Returns an iterator ofEdgeIntersections- Returns:
- an Iterator of EdgeIntersections
-
isIntersection
Tests if the given point is an edge intersection- Parameters:
pt- the point to test- Returns:
- true if the point is an intersection
-
addEndpoints
public void addEndpoints()Adds entries for the first and last points of the edge to the list -
addSplitEdges
Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the input list (this is so a single list can be used to accumulate all split edges for a Geometry).- Parameters:
edgeList- a list of EdgeIntersections
-
print
-