Package org.opengis.geometry

Examples of org.opengis.geometry.BoundingBox.toBounds()


        for (int i = 0; i < features.length; i++) {
            Feature f = features[i];
            BoundingBox fbounds = f.getBounds();
            if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) {
                fbounds = fbounds.toBounds(targetCrs);
            }
            bounds.include(fbounds);
        }
        return bounds;
    }
View Full Code Here


        for (int i = 0; i < features.length; i++) {
            Feature f = features[i];
            BoundingBox fbounds = f.getBounds();
            if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) {
                fbounds = fbounds.toBounds(targetCrs);
            }
            bounds.include(fbounds);
        }
        return bounds;
    }
View Full Code Here

    X3DBuilder x3d = new X3DBuilder(output);
    for (W3DSLayer layer : scene.getLayers()) {
      BoundingBox bbox = null;
      try {
        bbox = layer.getLayerInfo().getLayerInfo().getResource().boundingBox();
        bbox = bbox.toBounds(gt.getCrs());
      } catch (Exception e) {
        e.printStackTrace();
      }
      x3d.createGeoOrigin(gt.getCrs(), bbox);
      x3d.addW3DSLayer(layer);
View Full Code Here

            return null;
        }
        BoundingBox bbox = new ReferencedEnvelope(env, crs);
       
        try {
            return bbox.toBounds(monitorConfig.getBboxCrs());
        } catch (TransformException e) {
            LOGGER.log(Level.WARNING, "Could not transform bounding box to logging CRS", e);
            return null;
        }
    }
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.