Package it.geosolutions.geoserver.rest

Examples of it.geosolutions.geoserver.rest.GeoServerRESTPublisher.createWorkspace()


        GeoServerRESTPublisher publisher = new GeoServerRESTPublisher(RESTURL, RESTUSER, RESTPW);
                           
        String storeName = "resttestshp";
        String layerName = "cities";
       
        publisher.createWorkspace(DEFAULT_WS);

        File zipFile = new ClassPathResource("testdata/resttestshp.zip").getFile();

        // test insert
        boolean published = publisher.publishShp(DEFAULT_WS, storeName, layerName, zipFile);
View Full Code Here


        String storeName = "resttestshp";
        String layerName = "cities";
       
        // build the store
        publisher.createWorkspace(DEFAULT_WS);
       
        // test insert
        File zipFile = new ClassPathResource("testdata/resttestshp.zip").getFile();
        boolean published = publisher.publishShp(DEFAULT_WS, storeName, layerName, zipFile);
        assertTrue("publish() failed", published);
View Full Code Here

        layerEncoder.setQueryable(true);
        layerEncoder.setDefaultStyle("polygon");
       
        // test insert
        // ------------
        publisher.createWorkspace(DEFAULT_WS);
        published = publisher.publishDBLayer(DEFAULT_WS, storeName, fte, layerEncoder);
        assertTrue("Publication unsuccessful", published);
        assertTrue("Layer does not exist", existsLayer(layerName));

    }
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.