Examples of publishShp()


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

        publisher.createWorkspace(DEFAULT_WS);

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

        // test insert
        boolean published = publisher.publishShp(DEFAULT_WS, storeName, layerName, zipFile);
        assertTrue("publish() failed", published);
        assertTrue(existsLayer(layerName));

        publisher.publishStyle(new File(new ClassPathResource("testdata").getFile(),
                "default_point.sld"));
View Full Code Here

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

        // 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);

        publisher.publishStyle(new File(new ClassPathResource("testdata").getFile(),
                "default_point.sld"));
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.