Examples of buildCoverageStore()


Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        boolean add = false;
        if ( info == null ) {
            //create a new coverage store
            LOGGER.info("Auto-configuring coverage store: " + coveragestore);
           
            info = builder.buildCoverageStore(coveragestore);
            add = true;
        }
        else {
            //use the existing
            LOGGER.info("Using existing coverage store: " + coveragestore);
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        }

        CatalogBuilder cb = new CatalogBuilder(catalog);
        cb.setWorkspace(workspace);
       
        CoverageStoreInfo store = cb.buildCoverageStore(data.getName());
        store.setURL(f.toURI().toURL().toString());
        store.setType(gridFormat().getName());
       
        return store;
    }
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        List<ImportTask> tasks = new ArrayList<ImportTask>();
        if (reader != null) {
            CatalogBuilder cb = new CatalogBuilder(catalog);

            //create a dummy store
            CoverageStoreInfo store = cb.buildCoverageStore("dummy");
            store.setType(gridFormat().getName());
            cb.setStore(store);

            try {
                CoverageInfo coverage = cb.buildCoverage(reader, null);
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

            }
        } else if (coverage != null) {
          //create a new coverage store
            LOGGER.info("Auto-configuring coverage store: " + (name != null ? name : coverage.getName().toString()));
           
            storeInfo = cb.buildCoverageStore((name != null ? name : coverage.getName().toString()));
            add = true;
            store = (name != null ? name : coverage.getName().toString());
           
            if (storeInfo == null) {
                throw new ProcessException("Could not find a default store in workspace " + ws.getName());
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

            if (existing instanceof DataStoreInfo) {
                clone = cb.buildDataStore(existing.getName());
                cb.updateDataStore((DataStoreInfo) clone, (DataStoreInfo) existing);
            }
            else if (existing instanceof CoverageStoreInfo) {
                clone = cb.buildCoverageStore(existing.getName());
                cb.updateCoverageStore((CoverageStoreInfo) clone, (CoverageStoreInfo) existing);
            }
            else {
                throw new RestletException(
                    "Unable to handle existing store: " + update, Status.SERVER_ERROR_INTERNAL);
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

            createTimeMosaic(mosaic, 1025);
           
            // now configure a new store based on it
            Catalog cat = getCatalog();
            CatalogBuilder cb = new CatalogBuilder(cat);
            CoverageStoreInfo store = cb.buildCoverageStore("largeMosaic");
            store.setURL(mosaic.getAbsolutePath());
            store.setType("ImageMosaic");
            cat.add(store);
           
            // and configure also the coverage
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

            createTimeMosaic(mosaic, 4);
           
            // now configure a new store based on it
            Catalog cat = getCatalog();
            CatalogBuilder cb = new CatalogBuilder(cat);
            CoverageStoreInfo store = cb.buildCoverageStore("smallMosaic");
            store.setURL(mosaic.getAbsolutePath());
            store.setType("ImageMosaic");
            cat.add(store);
           
            // and configure also the coverage
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        // Creation of the builder for building a new CoverageStore
        CatalogBuilder builder = new CatalogBuilder(getCatalog());
        // Definition of the workspace associated to the coverage
        WorkspaceInfo ws = getCatalog().getWorkspaceByName("gs");
        // Creation of a CoverageStore
        CoverageStoreInfo store = builder.buildCoverageStore("watertemp4");
        store.setURL(DataUtilities.fileToURL(mosaic).toExternalForm());
        store.setWorkspace(ws);
        ImageMosaicFormat imageMosaicFormat = new ImageMosaicFormat();
        store.setType((imageMosaicFormat.getName()));
        // Addition to the catalog
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        boolean add = false;
        if ( info == null ) {
            //create a new coverage store
            LOGGER.info("Auto-configuring coverage store: " + coveragestore);
           
            info = builder.buildCoverageStore(coveragestore);
            add = true;
        }
        else {
            //use the existing
            LOGGER.info("Using existing coverage store: " + coveragestore);
View Full Code Here

Examples of org.geoserver.catalog.CatalogBuilder.buildCoverageStore()

        boolean add = false;
        if ( info == null ) {
            //create a new coverage store
            LOGGER.info("Auto-configuring coverage store: " + coveragestore);
           
            info = builder.buildCoverageStore(coveragestore);
            add = true;
        }
        else {
            //use the existing
            LOGGER.info("Using existing coverage store: " + coveragestore);
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.