Package org.geotools.geometry.jts

Examples of org.geotools.geometry.jts.ReferencedEnvelope.covers()


    ReferencedEnvelope bbox_e = new ReferencedEnvelope(minx, maxx, miny,
        maxy, crs);
    Envelope crsEnvelope = CRS.getEnvelope(crs);
    if (crsEnvelope != null) {
      ReferencedEnvelope crs_e = new ReferencedEnvelope(CRS.getEnvelope(crs));
      if (!crs_e.covers(bbox_e)) {
        // The specification says: If the Bounding Box values are
        // not defined for the given CRS (e.g., latitudes greater than 90
        // degrees in CRS:84), the
        // server should return empty content for areas outside the valid
        // range of the CRS.
View Full Code Here


                            limitBox = new ReferencedEnvelope(limitBox.intersection(box), dataCrs);                       
                        }
                    }
                }               
               
                if (!limitBox.covers(ReferencedEnvelope.EVERYTHING) && (boundingBox==null || !limitBox.contains(boundingBox))) {
                    throw new ServiceException("Access denied to bounding box on layer " + layerName, "AccessDenied");
                }
            }
           
        }
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.