com.vividsolutions.jts.geomgraph
Class EdgeIntersectionList
java.lang.Object
com.vividsolutions.jts.geomgraph.EdgeIntersectionList
public class EdgeIntersectionList
extends java.lang.Object
A list of edge intersections along an
Edge
.
Implements splitting an edge with intersections
into multiple resultant edges.
EdgeIntersectionList
public EdgeIntersectionList(Edge edge)
add
public EdgeIntersection add(Coordinate intPt,
int segmentIndex,
double dist)
Adds an intersection into the list, if it isn't already there.
The input segmentIndex and dist are expected to be normalized.
- the EdgeIntersection found or added
addEndpoints
public void addEndpoints()
Adds entries for the first and last points of the edge to the list
addSplitEdges
public void addSplitEdges(List edgeList)
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).
edgeList
- a list of EdgeIntersections
isIntersection
public boolean isIntersection(Coordinate pt)
Tests if the given point is an edge intersection
- true if the point is an intersection
iterator
public Iterator iterator()
- an Iterator of EdgeIntersections
print
public void print(PrintStream out)