Package org.geotools.coverage.grid.io

Examples of org.geotools.coverage.grid.io.StructuredGridCoverage2DReader.harvest()


            GridCoverageReader reader = info.getGridCoverageReader(null, null);
            StructuredGridCoverage2DReader sr = (StructuredGridCoverage2DReader) reader;
            // This method returns a List of the harvested files.
            final List<File> uploadedFiles = doFileUpload(method, workspace, coveragestore, format);
            // File Harvesting
            sr.harvest(null, uploadedFiles, GeoTools.getDefaultHints());
        } catch(IOException e) {
            throw new RestletException("File harvest failed", Status.SERVER_ERROR_INTERNAL, e);
        }
    }
   
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.