Examples of MapInfo


Examples of org.geoserver.catalog.MapInfo

        catalog.add(ns);

        LayerInfo layer1 = createLayer(ws, "cs1", "cov1", "ncov1", "test coverage 1", "testlayer1");
        LayerInfo layer2 = createLayer(ws, "cs2", "cov2", "ncov2", "test coverage 2", "testlayer2");

        MapInfo map1 = catalog.getFactory().createMap();
        map1.setName("map_testLayer");
        map1.getLayers().add(layer1);
        map1.getLayers().add(layer2);
        catalog.add(map1);

        endTransaction();
        startNewTransaction();

        MapInfo map2 = catalog.getMap(map1.getId());
        assertNotNull(map2);
        map2 = ModificationProxy.unwrap(map2);

        // assertTrue( map1 != map2 );

        assertEquals(2, map2.getLayers().size());
    }
View Full Code Here

Examples of transientlibs.maps.misc.MapInfo

    public static void catalogueMap(String fromFile) {

        StringAnalyst reader = new StringAnalyst();

        MapInfo newInfo = new MapInfo();

        mapCatalogue.add(newInfo);
        newInfo.filePath = fromFile;

        reader.openFile(fromFile);
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.