Examples of calculateLayerGroupBounds()


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

       
        // build the nested layer group, only one layer in it
        LayerGroupInfo nested = getCatalog().getFactory().createLayerGroup();
        nested.setName(NESTED_LAYER_GROUP);
        nested.getLayers().add(getCatalog().getLayerByName(bpLayerId));
        builder.calculateLayerGroupBounds(nested);
        getCatalog().add(nested);
       
        // build the container layer group
        LayerGroupInfo container = getCatalog().getFactory().createLayerGroup();
        container.setName(CONTAINER_LAYER_GROUP);
View Full Code Here

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

        // build the container layer group
        LayerGroupInfo container = getCatalog().getFactory().createLayerGroup();
        container.setName(CONTAINER_LAYER_GROUP);
        container.getLayers().add(getCatalog().getLayerByName(mpLayerId));
        container.getLayers().add(getCatalog().getLayerGroupByName(NESTED_LAYER_GROUP));
        builder.calculateLayerGroupBounds(container);
        getCatalog().add(container);
       
       
        // check the caching headers on the nested group
        MockHttpServletResponse sr = getAsServletResponse("gwc/service/wmts?request=GetTile&layer="
View Full Code Here

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

        CatalogBuilder cb = new CatalogBuilder(getCatalog());
        LayerGroupInfo gi = cf.createLayerGroup();
        gi.setName("testGroup");
        gi.getLayers().add(getCatalog().getLayerByName(MockData.BASIC_POLYGONS.getLocalPart()));
        gi.getStyles().add(getCatalog().getStyleByName("polygon"));
        cb.calculateLayerGroupBounds(gi);
        getCatalog().add(gi);
    }
   
    @Override
    protected void oneTimeTearDown() throws Exception {
View Full Code Here

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

        eoProduct.setMode(LayerGroupInfo.Mode.EO);
        eoProduct.setRootLayer(rootLayer);
        eoProduct.setRootLayerStyle(rootLayer.getDefaultStyle());
       
        CatalogBuilder catBuilder = new CatalogBuilder(getCatalog());
        catBuilder.calculateLayerGroupBounds(eoProduct);
       
        eoProduct.getLayers().add(rootLayer);
        getCatalog().add(eoProduct);
        try {
            Document dom = dom(get("wms?request=getCapabilities&version=1.1.1"), false);
View Full Code Here

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

        CatalogBuilder cb = new CatalogBuilder(getCatalog());
        LayerGroupInfo gi = cf.createLayerGroup();
        gi.setName("testGroup");
        gi.getLayers().add(getCatalog().getLayerByName(MockData.BASIC_POLYGONS.getLocalPart()));
        gi.getStyles().add(getCatalog().getStyleByName("polygon"));
        cb.calculateLayerGroupBounds(gi);
        getCatalog().add(gi);
    }
   
    @Override
    protected void oneTimeTearDown() throws Exception {
View Full Code Here

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

        if(lakes != null && forests != null) {
            group.setName(NATURE_GROUP);
            group.getLayers().add(lakes);
            group.getLayers().add(forests);
            CatalogBuilder cb = new CatalogBuilder(catalog);
            cb.calculateLayerGroupBounds(group);
            catalog.add(group);
        }
        testData.addStyle("default", "Default.sld",MockData.class, catalog);
        //"default", MockData.class.getResource("Default.sld")
View Full Code Here

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

       
        group.getLayers().add(lakes);
        group.getLayers().add(places);

        CatalogBuilder cb = new CatalogBuilder(catalog);
        cb.calculateLayerGroupBounds(group);
       
        catalog.add(group);
       
        return group;
    }   
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);

        // makes the lakes layer a multi-style one
        LayerInfo lakesLayer = catalog.getLayerByName(getLayerId(MockData.LAKES));
        lakesLayer.getStyles().add(catalog.getStyleByName(MockData.FORESTS.getLocalPart()));
View Full Code Here

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

       
        assertNull(group.getBounds());

        // force bounds computation
        CatalogBuilder cb = new CatalogBuilder(cat);       
        cb.calculateLayerGroupBounds(group);
       
        assertNull(group.getBounds());       
    }
   
    @Test
View Full Code Here

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

        group.getLayers().add(layer);
       
        assertNull(group.getBounds());

        // force bounds computation
        cb.calculateLayerGroupBounds(group);
       
        assertNotNull(group.getBounds());
        assertEquals(fti.getNativeBoundingBox(), group.getBounds());
    }
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.