Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.LinearRing.difference()


      // Get solid polygon(no hole)
      LinearRing solidRing = GeometryUtil.gf().createLinearRing(
          extRing.getCoordinates());
      Polygon solidPg = GeometryUtil.gf().createPolygon(solidRing, null);
      Geometry solidCutter = cutter.intersection(solidPg);
      Geometry solidBounds = solidRing.difference(cutter);

      Polygonizer pgzer = new Polygonizer();
      for (int i = 0, count = solidBounds.getNumGeometries(); i < count; i++) {
        pgzer.add(solidBounds.getGeometryN(i));
      }
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.