Examples of expandToInclude()


Examples of org.geotools.geometry.jts.ReferencedEnvelope3D.expandToInclude()

    public ReferencedEnvelope3D get3DEnvelope(Geometry geom) {
      Coordinate[] coordinates = geom.getCoordinates();
     
      ReferencedEnvelope3D env = new ReferencedEnvelope3D();
      for (Coordinate coordinate : coordinates) {
        env.expandToInclude(coordinate);
      }
      return env;
    }

    public boolean evaluate(Object feature) {
View Full Code Here

Examples of org.neo4j.gis.spatial.rtree.Envelope.expandToInclude()

  private ReferencedEnvelope getEnvelope(Collection<Layer> layers) {
    CoordinateReferenceSystem crs = null;

    Envelope envelope = new Envelope();
    for (Layer layer : layers) {
      envelope.expandToInclude(layer.getIndex().getBoundingBox());
      if (crs == null) {
        crs = layer.getCoordinateReferenceSystem();
      }
    }
View Full Code Here

Examples of org.opengis.geometry.Envelope.expandToInclude()

                            ymax = env.getMaximum(1);
                    }
                } else if (ext instanceof GeographicBoundingBox) {
                    GeographicBoundingBox gbb = (GeographicBoundingBox) ext;
                    ReferencedEnvelope env = new ReferencedEnvelope(DefaultGeographicCRS.WGS84);
                    env.expandToInclude(gbb.getWestBoundLongitude(), gbb.getNorthBoundLatitude());
                    env.expandToInclude(gbb.getEastBoundLongitude(), gbb.getSouthBoundLatitude());
                    env = env.transform(crs, true);
                    if (env.getMinX() < xmin)
                        xmin = env.getMinX();
                    if (env.getMaxX() > xmax)
View Full Code Here

Examples of org.opengis.geometry.Envelope.expandToInclude()

                    }
                } else if (ext instanceof GeographicBoundingBox) {
                    GeographicBoundingBox gbb = (GeographicBoundingBox) ext;
                    ReferencedEnvelope env = new ReferencedEnvelope(DefaultGeographicCRS.WGS84);
                    env.expandToInclude(gbb.getWestBoundLongitude(), gbb.getNorthBoundLatitude());
                    env.expandToInclude(gbb.getEastBoundLongitude(), gbb.getSouthBoundLatitude());
                    env = env.transform(crs, true);
                    if (env.getMinX() < xmin)
                        xmin = env.getMinX();
                    if (env.getMaxX() > xmax)
                        xmax = env.getMaxX();
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.