Ejemplo n.º 1
0
 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);
   }
 }
Ejemplo n.º 3
0
 public Coordinate[] getParentCoordinates() {
   return parentLine.getCoordinates();
 }