createSplitEdge method

SegmentString createSplitEdge(
  1. SegmentNode ei0,
  2. SegmentNode ei1
)

Create a new "split edge" with the section of points between (and including) the two intersections. The label for the new edge is the same as the label for the parent edge.

Implementation

SegmentString createSplitEdge(SegmentNode ei0, SegmentNode ei1) {
  List<Coordinate> pts = createSplitEdgePts(ei0, ei1);
  return new NodedSegmentString(pts, edge.getData());
}