Package com.vividsolutions.jtstest.clean

Examples of com.vividsolutions.jtstest.clean.LineStringExtracter


    return true;
  }
 
  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;
  }
View Full Code Here


    tbModel.getCurrentTestCaseEdit().setGeometry(0, cleanGeom);
    updateGeometry();
  }

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

TOP

Related Classes of com.vividsolutions.jtstest.clean.LineStringExtracter

Copyright © 2018 www.massapicom. 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.