|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StructuredGridCoverage2DReader
A GridCoverage2DReader
which exposes the underlying granule structure and allows to
create and remove coverages.
Field Summary |
---|
Method Summary | |
---|---|
void |
createCoverage(String coverageName,
SimpleFeatureType schema)
Creates a granule store for a new coverage with the given feature type |
void |
delete(boolean deleteData)
delete all stuff (database content, indexer files, property files, associated auxiliary files and so on). |
List<DimensionDescriptor> |
getDimensionDescriptors(String coverageName)
Describes the dimensions supported by the specified coverage, if any. |
GranuleSource |
getGranules(String coverageName,
boolean readOnly)
Returns the granule source for the specified coverage (might be null, if there is only one supported coverage) |
List<HarvestedSource> |
harvest(String defaultTargetCoverage,
Object source,
Hints hints)
Harvests the specified source into the reader. |
boolean |
isReadOnly()
Return whether this reader can modify the granule source |
boolean |
removeCoverage(String coverageName)
Deprecated. use removeCoverage(String, boolean) |
boolean |
removeCoverage(String coverageName,
boolean delete)
removes a granule store for the specified coverageName |
Methods inherited from interface GridCoverageReader |
---|
dispose, getCurrentSubname, getFormat, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip |
Method Detail |
---|
GranuleSource getGranules(String coverageName, boolean readOnly) throws IOException, UnsupportedOperationException
coverageName
- the name of the specified coveragereadOnly
- a boolean indicating whether we may want modify the GranuleSource
GranuleSource
IOException
UnsupportedOperationException
boolean isReadOnly()
void createCoverage(String coverageName, SimpleFeatureType schema) throws IOException, UnsupportedOperationException
IOException
UnsupportedOperationException
boolean removeCoverage(String coverageName) throws IOException, UnsupportedOperationException
removeCoverage(String, boolean)
IOException
UnsupportedOperationException
boolean removeCoverage(String coverageName, boolean delete) throws IOException, UnsupportedOperationException
IOException
UnsupportedOperationException
void delete(boolean deleteData) throws IOException
deleteData
- specifies whether data (granules) should be deleted too.
IOException
List<HarvestedSource> harvest(String defaultTargetCoverage, Object source, Hints hints) throws IOException, UnsupportedOperationException
defaultCoverage
- 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
IOException
UnsupportedOperationException
List<DimensionDescriptor> getDimensionDescriptors(String coverageName) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |