Examples of boundingBox()


Examples of org.geoserver.catalog.FeatureTypeInfo.boundingBox()

        map.put("height", imageBox[1]);
     
        map.put("maxResolution", getMaxResolution(bbox));
       
      try{         
          map.put("boundingBox", info.boundingBox());
          map.put("lonLatBoundingBox", info.getLatLonBoundingBox());
      } catch(Exception e) {
            LOGGER.log(Level.WARNING, "Error trying to access bounding box or lonLatBoundingBox for " + info.getName() + "FeatureTypeInfo", e);
     
     
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.boundingBox()

                FeatureEntry fe = new FeatureEntry();
                fe.setTableName(ft.getName());
                fe.setIdentifier(ft.getTitle());
                fe.setDescription(ft.getAbstract());
                try {
                    fe.setBounds(ft.boundingBox());
                } catch (Exception e) {
                    throw new IOException(e);
                }
                fe.setSrid(srid(ft.getSRS()));
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.boundingBox()

        map.put("height", imageBox[1]);
     
        map.put("maxResolution", getMaxResolution(bbox));
       
      try{         
          map.put("boundingBox", info.boundingBox());
          map.put("lonLatBoundingBox", info.getLatLonBoundingBox());
      } catch(Exception e) {
            LOGGER.log(Level.WARNING, "Error trying to access bounding box or lonLatBoundingBox for " + info.getName() + "FeatureTypeInfo", e);
     
     
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

     * @throws Exception
     */
    public ReferencedEnvelope getBoundingBox() throws Exception {
        if (layerInfo != null) {
            ResourceInfo resource = layerInfo.getResource();
            ReferencedEnvelope bbox = resource.boundingBox();
            // if(bbox == null){
            // bbox = resource.getLatLonBoundingBox();
            // }
            return bbox;
        } else if (this.type == TYPE_REMOTE_VECTOR) {
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

        return mapDetails(new JSONObj(), map, wsName, req);
    }

    void updateBounds(ReferencedEnvelope bounds, LayerInfo layer) throws Exception {
        ResourceInfo r = layer.getResource();
        if (r.boundingBox() != null && CRS.equalsIgnoreMetadata(bounds.getCoordinateReferenceSystem(), r.getCRS())) {
            bounds.include(r.boundingBox());
        }
        else {
            bounds.include(r.getLatLonBoundingBox().transform(bounds.getCoordinateReferenceSystem(), true));
        }
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

    }

    void updateBounds(ReferencedEnvelope bounds, LayerInfo layer) throws Exception {
        ResourceInfo r = layer.getResource();
        if (r.boundingBox() != null && CRS.equalsIgnoreMetadata(bounds.getCoordinateReferenceSystem(), r.getCRS())) {
            bounds.include(r.boundingBox());
        }
        else {
            bounds.include(r.getLatLonBoundingBox().transform(bounds.getCoordinateReferenceSystem(), true));
        }
    }
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

        try {
            LinkedHashMap json = new LinkedHashMap();
            json.put("name", resource.getPrefixedName());
            try {
                json.put("bbox", toJSON(resource.boundingBox()));
            } catch(Exception e) {
                throw ((IOException) new IOException("Failed to get the resource bounding box of:" + resource.getPrefixedName()).initCause(e));
            }
            json.put("crs", "urn:ogc:def:crs:EPSG:" + CRS.lookupEpsgCode(resource.getCRS(), false));
            json.put("axisorder", "xy");
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

     * @throws Exception
     */
    public ReferencedEnvelope getBoundingBox() throws Exception {
        if (layerInfo != null) {
            ResourceInfo resource = layerInfo.getResource();
            ReferencedEnvelope bbox = resource.boundingBox();
            // if(bbox == null){
            // bbox = resource.getLatLonBoundingBox();
            // }
            return bbox;
        } else if (this.type == TYPE_REMOTE_VECTOR) {
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

        assertEquals(ImportTask.State.READY, task.getState());

        ResourceInfo r = task.getLayer().getResource();
        assertNotNull(r.getLatLonBoundingBox());
        assertNotNull(r.boundingBox());
        assertNotNull(r.boundingBox().getCoordinateReferenceSystem());
    }

    @Test
    public void testImportUnknownFile() throws Exception {
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

        assertEquals(ImportTask.State.READY, task.getState());

        ResourceInfo r = task.getLayer().getResource();
        assertNotNull(r.getLatLonBoundingBox());
        assertNotNull(r.boundingBox());
        assertNotNull(r.boundingBox().getCoordinateReferenceSystem());
    }

    @Test
    public void testImportUnknownFile() throws Exception {
        File dir = unpack("gml/states_wfs11.xml.gz");
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.