Package com.vividsolutions.jtstest.clean

Examples of com.vividsolutions.jtstest.clean.LineStringExtracter.extract()


  private List extractLineStrings(Collection geometries) {
    ArrayList lineStrings = new ArrayList();
    LineStringExtracter extracter = new LineStringExtracter();
    for (Iterator i = geometries.iterator(); i.hasNext(); ) {
      Geometry geometry = (Geometry) i.next();
      lineStrings.add(extracter.extract(geometry));     
    }
    return lineStrings;
  }

  private Geometry node(List geometries) {
View Full Code Here


    updateGeometry();
  }

  void menuChangeToLines_actionPerformed(ActionEvent e) {
    LineStringExtracter lse = new LineStringExtracter();
    Geometry cleanGeom = lse.extract(tbModel.getCurrentTestCaseEdit().getGeometry(0));
    tbModel.getCurrentTestCaseEdit().setGeometry(0, cleanGeom);
    updateGeometry();
  }

  void btnEditVertex_actionPerformed(ActionEvent e) {
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.