getSplitCoordinates method
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.
@return an array of Coordinates
Implementation
List<Coordinate> getSplitCoordinates() {
CoordinateList coordList = new CoordinateList();
// ensure that the list has entries for the first and last point of the edge
addEndpoints();
Iterator it = iterator();
// there should always be at least two entries in the list, since the endpoints are nodes
SegmentNode eiPrev = it.current;
while (it.moveNext()) {
SegmentNode ei = it.current;
addEdgeCoordinates(eiPrev, ei, coordList);
eiPrev = ei;
}
return coordList.toCoordinateArray();
}