Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.GeometryCollectionIterator


public class BufferByUnionFunctions {
 
  public static Geometry componentBuffers(Geometry g, double distance
  {   
    List bufs = new ArrayList();
    for (Iterator it = new GeometryCollectionIterator(g); it.hasNext(); ) {
      Geometry comp = (Geometry) it.next();
      if (comp instanceof GeometryCollection) continue;
      bufs.add(comp.buffer(distance));
    }
    return FunctionsUtil.getFactoryOrDefault(g)
            .createGeometryCollection(GeometryFactory.toGeometryArray(bufs));
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.GeometryCollectionIterator

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.