private void init() { Coordinate[] pts = parentLine.getCoordinates(); segs = new TaggedLineSegment[pts.length - 1]; for (int i = 0; i < pts.length - 1; i++) { TaggedLineSegment seg = new TaggedLineSegment(pts[i], pts[i + 1], parentLine, i); segs[i] = seg; } }
private void init(Geometry geom) { List lines = LinearComponentExtracter.getLines(geom); for (Iterator i = lines.iterator(); i.hasNext(); ) { LineString line = (LineString) i.next(); Coordinate[] pts = line.getCoordinates(); addLine(pts); } }
public Coordinate[] getParentCoordinates() { return parentLine.getCoordinates(); }