Package org.geotools.coverage.io.catalog
Class CoverageSlicesCatalogSource
Object
CoverageSlicesCatalogSource
- All Implemented Interfaces:
GranuleSource
A
GranuleSource
implementation wrapping a CoverageSlicesCatalog
.- Author:
- Daniele Romagnoli, GeoSolutions SAS
-
Field Summary
Fields inherited from interface GranuleSource
FILE_VIEW, FILES, NATIVE_BOUNDS, NATIVE_BOUNDS_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionCoverageSlicesCatalogSource
(CoverageSlicesCatalog innerCatalog, String typeName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
This will free/release any resource (cached granules, ...).Get the spatial bounds of the granules that would be returned by the givenQuery
.int
Gets the number of the granules that would be returned by the givenQuery
, taking into account any settings for max features and start index set on theQuery
.getGranules
(Query q) Retrieves granules, in the form of aSimpleFeatureCollection
, based on aQuery
.Retrieves the schema (feature type) that will apply to granules retrieved from thisGranuleSource
.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface GranuleSource
getSupportedHints
-
Constructor Details
-
CoverageSlicesCatalogSource
-
-
Method Details
-
getGranules
Description copied from interface:GranuleSource
Retrieves granules, in the form of aSimpleFeatureCollection
, based on aQuery
.- Specified by:
getGranules
in interfaceGranuleSource
- Parameters:
q
- theQuery
to select granules- Returns:
- the resulting granules.
- Throws:
IOException
-
getCount
Description copied from interface:GranuleSource
Gets the number of the granules that would be returned by the givenQuery
, taking into account any settings for max features and start index set on theQuery
.- Specified by:
getCount
in interfaceGranuleSource
- Parameters:
q
- theQuery
to select granules- Returns:
- the number of granules
- Throws:
IOException
-
getBounds
Description copied from interface:GranuleSource
Get the spatial bounds of the granules that would be returned by the givenQuery
.- Specified by:
getBounds
in interfaceGranuleSource
- Parameters:
q
- theQuery
to select granules- Returns:
- The bounding envelope of the requested data
- Throws:
IOException
-
getSchema
Description copied from interface:GranuleSource
Retrieves the schema (feature type) that will apply to granules retrieved from thisGranuleSource
.- Specified by:
getSchema
in interfaceGranuleSource
- Throws:
IOException
-
dispose
Description copied from interface:GranuleSource
This will free/release any resource (cached granules, ...).- Specified by:
dispose
in interfaceGranuleSource
- Throws:
IOException
-