Package org.geotools.coverage.grid.io
Interface StructuredGridCoverage2DReader
- All Superinterfaces:
- GridCoverage2DReader,- GridCoverageReader
- All Known Implementing Classes:
- ImageMosaicReader,- NetCDFReader
A 
GridCoverage2DReader which exposes the underlying granule structure and allows to create and remove
 coverages.- Author:
- Simone Giannecchini, GeoSolutions SAS, Andrea Aime, GeoSolutions SAS, Daniele Romagnoli, GeoSolutions SAS
- 
Field SummaryFields inherited from interface GridCoverage2DReaderELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_EPSGCODES, MULTICRS_READER, PAM_DATASET, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateCoverage(String coverageName, SimpleFeatureType schema) Creates a granule store for a new coverage with the given feature typevoiddelete(boolean deleteData) delete all stuff (database content, indexer files, property files, associated auxiliary files and so on).getDimensionDescriptors(String coverageName) Describes the dimensions supported by the specified coverage, if any.getGranules(String coverageName, boolean readOnly) Returns the granule source for the specified coverage (might be null, if there is only one supported coverage)Harvests the specified source into the reader.booleanReturn whether this reader can modify the granule sourcebooleanremoveCoverage(String coverageName, boolean delete) removes a granule store for the specified coverageNameMethods inherited from interface GridCoverage2DReadergetCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getInfo, getInfo, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read, readMethods inherited from interface GridCoverageReaderdispose, getFormat, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource
- 
Method Details- 
getGranulesGranuleSource getGranules(String coverageName, boolean readOnly) throws IOException, UnsupportedOperationException Returns the granule source for the specified coverage (might be null, if there is only one supported coverage)- Parameters:
- coverageName- the name of the specified coverage
- readOnly- a boolean indicating whether we may want modify the GranuleSource
- Returns:
- the requested GranuleSource
- Throws:
- IOException
- UnsupportedOperationException
 
- 
isReadOnlyboolean isReadOnly()Return whether this reader can modify the granule source
- 
createCoveragevoid createCoverage(String coverageName, SimpleFeatureType schema) throws IOException, UnsupportedOperationException Creates a granule store for a new coverage with the given feature type
- 
removeCoverageboolean removeCoverage(String coverageName, boolean delete) throws IOException, UnsupportedOperationException removes a granule store for the specified coverageName
- 
deletedelete all stuff (database content, indexer files, property files, associated auxiliary files and so on).- Parameters:
- deleteData- specifies whether data (granules) should be deleted too.
- Throws:
- IOException
 
- 
harvestList<HarvestedSource> harvest(String defaultTargetCoverage, Object source, Hints hints) throws IOException, UnsupportedOperationException Harvests the specified source into the reader. Depending on the implementation, the original source is harvested in place (e.g., image mosaic), or might be copied into the reader persistent storage (e.g., database raster handling)- Parameters:
- defaultTargetCoverage- Default target coverage, to be used in case the sources being harvested are not structured ones. The parameter is optional, in case it's missing the reader will use the first coverage as the default target.
- source- The source can be any kind of object, it's up to the reader implementation to understand and use it. Commons source types could be a single file, or a folder.
- hints- Used to provide implementation specific hints on how to harvest the sources
- Throws:
- IOException
- UnsupportedOperationException
 
- 
getDimensionDescriptorsDescribes the dimensions supported by the specified coverage, if any. (coverageName might be null, if there is only one supported coverage)- Throws:
- IOException
 
 
-