Examples of layers()


Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.MapTag.layers()

        MapTag map = (MapTag) maps.get(completeID);
        if (map == null) return false;
               
        // first goes through the mapTag and looks for map images
        // all images are uploaded and OOB is added
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag l = (LayerTag) layers.nextElement();
            ImgTag img = l.getImg();
            if (img != null) {
                File imgFile = new File(completeMapPath + "/" + img.getSrc());
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

                JSONObj l = (JSONObj) i.next();
                String n = l.str("workspace")+":"+l.str("name");
                LayerInfo layer = cat.getLayerByName(n);
                layers.add(layer);
            }
            map.layers().clear();
            map.layers().addAll(layers);
        }
        // update configuration history
        String user = SecurityContextHolder.getContext().getAuthentication().getName();
        map.getMetadata().put("user", user );
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

                String n = l.str("workspace")+":"+l.str("name");
                LayerInfo layer = cat.getLayerByName(n);
                layers.add(layer);
            }
            map.layers().clear();
            map.layers().addAll(layers);
        }
        // update configuration history
        String user = SecurityContextHolder.getContext().getAuthentication().getName();
        map.getMetadata().put("user", user );
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        LayerGroupInfo map = findMap(wsName, mapName, cat);
        WorkspaceInfo ws = map.getWorkspace();

        PublishedInfo layer = findMapLayer( map, name );
        int index = map.layers().indexOf(layer);
        boolean removed = map.getLayers().remove(layer);
        if( removed ){
            map.getStyles().remove(index);

            cat.save(map);
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        } catch (Exception e) {
            LOGGER.log(Level.INFO, "Error transforming " + lgi.getName()
                    + " LayerGroup's bounds to EPSG:4326", e);
            latLonBoundingBox = new ReferencedEnvelope(DefaultGeographicCRS.WGS84);
            try {
                for (LayerInfo li : lgi.layers()) {
                    ReferencedEnvelope llbb = li.getResource().getLatLonBoundingBox();
                    latLonBoundingBox.expandToInclude(llbb.transform(DefaultGeographicCRS.WGS84,
                            true));
                }
            } catch (Exception e2) {
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        lg.getLayers().add(null);
        lg.getStyles().add(null);
       
        catalog.add(lg);
        LayerGroupInfo resolved = catalog.getLayerGroupByName("layerGroup2");
        assertEquals(1, resolved.layers().size());
        assertEquals(1, resolved.styles().size());
        assertEquals(s, resolved.styles().get(0));
    }
   
    @Test
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

       
        lg2.setRootLayer(l);
        lg2.setRootLayerStyle(s);
       
        lg2.setMode(LayerGroupInfo.Mode.SINGLE);
        assertEquals(lg2.getLayers(), lg2.layers());
        assertEquals(lg2.getStyles(), lg2.styles());
       
        lg2.setMode(LayerGroupInfo.Mode.NAMED);
        assertEquals(lg2.getLayers(), lg2.layers());
        assertEquals(lg2.getStyles(), lg2.styles());
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        lg2.setMode(LayerGroupInfo.Mode.SINGLE);
        assertEquals(lg2.getLayers(), lg2.layers());
        assertEquals(lg2.getStyles(), lg2.styles());
       
        lg2.setMode(LayerGroupInfo.Mode.NAMED);
        assertEquals(lg2.getLayers(), lg2.layers());
        assertEquals(lg2.getStyles(), lg2.styles());
       
        lg2.setMode(LayerGroupInfo.Mode.CONTAINER);
        try {
            assertEquals(lg2.getLayers(), lg2.layers());
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        assertEquals(lg2.getLayers(), lg2.layers());
        assertEquals(lg2.getStyles(), lg2.styles());
       
        lg2.setMode(LayerGroupInfo.Mode.CONTAINER);
        try {
            assertEquals(lg2.getLayers(), lg2.layers());
            fail("Layer group of Type Container can not be rendered");
        } catch (UnsupportedOperationException e) {
            assertTrue(true);
        }
        try {
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.layers()

        } catch (UnsupportedOperationException e) {
            assertTrue(true);
        }       
       
        lg2.setMode(LayerGroupInfo.Mode.EO);
        assertEquals(1, lg2.layers().size());
        assertEquals(1, lg2.styles().size());
        assertEquals(l, lg2.layers().iterator().next());
        assertEquals(s, lg2.styles().iterator().next());       
    }
   
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.