Examples of calculateLayerGroupBounds()


Examples of org.geoserver.catalog.CatalogBuilder.calculateLayerGroupBounds()

        group.setRootLayer(layer);
       
        assertNull(group.getBounds());

        // force bounds computation
        cb.calculateLayerGroupBounds(group);
       
        assertNotNull(group.getBounds());
        assertEquals(fti.getNativeBoundingBox(), group.getBounds());
    }
   
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.calculateLayerGroupBounds()

        lg.getLayers().add(catalog.getLayerByName(forests));
        lg.getStyles().add(catalog.getStyleByName(forests));
        lg.getLayers().add(catalog.getLayerByName(bridges));
        lg.getStyles().add(catalog.getStyleByName(bridges));
        CatalogBuilder builder = new CatalogBuilder(catalog);
        builder.calculateLayerGroupBounds(lg);
        catalog.add(lg);
    }
   
    public void setNativeBox(Catalog catalog, String name) throws Exception {
        FeatureTypeInfo fti = catalog.getFeatureTypeByName(name);
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.