Package it.geosolutions.geoserver.rest.decoder

Examples of it.geosolutions.geoserver.rest.decoder.RESTCoverage


                        + datastore.getName() + " / " + featureType.getName(), removed);

    }

    private void deleteCoverage(RESTLayer layer) {
        RESTCoverage coverage = reader.getCoverage(layer);
        RESTCoverageStore coverageStore = reader.getCoverageStore(coverage);

        LOGGER.warn("Deleting Coverage " + coverageStore.getWorkspaceName() + " : "
                + coverageStore.getName() + " / " + coverage.getName());

        boolean removed = publisher.unpublishCoverage(coverageStore.getWorkspaceName(),
                coverageStore.getName(), coverage.getName());
        assertTrue("Coverage not deleted " + coverageStore.getWorkspaceName() + " : "
                + coverageStore.getName() + " / " + coverage.getName(), removed);
    }
View Full Code Here


     * @throws NumberFormatException
     */
    private GSImageMosaicEncoder copyParameters(String wsName, String coverageStoreName,
            String csname) throws NumberFormatException {
        // get current config for the coverage to extract the params we want to set again
        final RESTCoverage coverage = reader.getCoverage(wsName, coverageStoreName, csname);
        if (coverage==null)
            return null;
        final Map<String, String> params = coverage.getParametersList();    
       
        // prepare and fill the encoder
        final GSImageMosaicEncoder coverageEncoder = new GSImageMosaicEncoder();
        coverageEncoder.setName("mosaic");
       
View Full Code Here

    @Test
    public void testMetadataDimensionInfo() throws IOException {
       
        File coverageFile = new ClassPathResource("testdata/coverageExample.xml").getFile();
        String coverageString = FileUtils.readFileToString(coverageFile);
        RESTCoverage coverage = RESTCoverage.build(coverageString);
        List<RESTDimensionInfo> list = coverage.getDimensionInfo();
       
        Assert.assertEquals(list.size(),2);
       
       
        for (RESTDimensionInfo el : list){
View Full Code Here

                LOGGER.error(e.getLocalizedMessage(), e);
            return false;
        }
       
        // optimized search, left the old code for reference
        RESTCoverage coverage = reader.getCoverage(wsname, csname, coverageName);
//        final RESTCoverageList covList = reader.getCoverages(wsname, csname);
//        if (covList==null||covList.isEmpty()) {
//            if (LOGGER.isErrorEnabled())
//                LOGGER.error("No coverages found in new coveragestore " + csname);
//            return false;
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.decoder.RESTCoverage

Copyright © 2018 www.massapicom. 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.