Package chunmap.model.coord

Examples of chunmap.model.coord.CoordSeqEditor.join()


    Geometry g2 = wkt.read("LineString(32 34,334 23)");
    LineString l = (LineString) g;
    LineString l2 = (LineString) g2;

    CoordSeqEditor lineEditor = new CoordSeqEditor(l.getPoints());
    lineEditor.join(l2.getPoints());
    LineString rl2 = new LineString(lineEditor.toCoordinateSeq());
    String s = "LINESTRING(32.0 34.0,334.0 23.0,1230.09 234.0)";
    assertTrue(s.equals(rl2.toString()));
  }
View Full Code Here


    LineString tl = null;
    CoordSeqEditor newLine = new CoordSeqEditor(line.getPoints());
    for (LineString ls : lines) {
      CoordinateSeq l=ls.getPoints();
      if (newLine.canJoin(l)) {
        newLine.join(l);
        tl = ls;
        break;
      }
    }
View Full Code Here

    while (true) {
      for (int i = 0; i < n; i++) {
        if (!fragment.get(i).isFlag()) {
          LineString ls = fragment.get(i).getLineString();
          if (line.canJoin(ls.getPoints())) {
            line.join(ls.getPoints());
            fragment.get(i).setFlag(true);
            none = false;
          }
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.