Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.GeometryCollection.union()


          Geometry[] geos = new Geometry[resultGeometries.size()];
          resultGeometries.toArray(geos);
          GeometryCollection geoCollection = geoFactory
              .createGeometryCollection(geos);
          resultGeometries = new ArrayList<Geometry>();
          resultGeometries.add(geoCollection.union());
        }
      }

      // Various out format
      if ("json".equals(f)) {
View Full Code Here


        Geometry[] geomArray = new Geometry[ops.size()];
        for (int i = 0; i < geomArray.length; i++) {
            geomArray[i] = ops.get(i).geometry;
        }
        GeometryCollection collection = geomArray[0].getFactory().createGeometryCollection(geomArray);
        Geometry united = collection.union();
        Literal geometry = FF.literal(united);
       
        // rebuild the filter
        Class<?> operation = ops.get(0).operation;
        if(BBOX.class.isAssignableFrom(operation) || Intersects.class.isAssignableFrom(operation)) {
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.