Package com.vividsolutions.jts.noding.snapround

Examples of com.vividsolutions.jts.noding.snapround.GeometryNoder


   
    List lines = LinearComponentExtracter.getLines(g1);
    // add second input's linework, if any
    if (g2 != null)
      LinearComponentExtracter.getLines(g2, lines);
    List nodedLinework = new GeometryNoder(pm).node(lines);
    // union the noded linework to remove duplicates
    Geometry nodedDedupedLinework = geomFact.buildGeometry(nodedLinework).union();
   
    // polygonize the result
    Polygonizer polygonizer = new Polygonizer();
View Full Code Here


    Geometry roundedGeom = GeometryPrecisionReducer.reducePointwise(geom, pm);

    List geomList = new ArrayList();
    geomList.add(roundedGeom);
   
    GeometryNoder noder = new GeometryNoder(pm);
    List lines = noder.node(geomList);
   
    return FunctionsUtil.getFactoryOrDefault(geom).buildGeometry(lines);
  }
View Full Code Here

  void runRounding(String[] wkt)
  {
    List geoms = fromWKT(wkt);
    PrecisionModel pm = new PrecisionModel(1.0);
    GeometryNoder noder = new GeometryNoder(pm);
    List nodedLines = noder.node(geoms);
/*
    for (Iterator it = nodedLines.iterator(); it.hasNext(); ) {
      System.out.println(it.next());
    }
    */
 
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.noding.snapround.GeometryNoder

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.