Class GranuleCatalogSource
Object
GranuleCatalogSource
- All Implemented Interfaces:
GranuleSource
- Direct Known Subclasses:
GranuleCatalogStore
A
GranuleSource
implementation wrapping a GranuleCatalog
.- Author:
- Daniele Romagnoli, GeoSolutions SAS, Simone Giannecchini, GeoSolutions SAS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GranuleCatalog
The underlyingGranuleCatalog
protected Hints
protected RasterManager
protected String
Fields inherited from interface GranuleSource
FILE_VIEW, FILES, NATIVE_BOUNDS, NATIVE_BOUNDS_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionGranuleCatalogSource
(RasterManager manager, GranuleCatalog catalog, String typeName, Hints hints) -
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
.Returns the set of hints that thisGranuleSource
supports viaQuery
requests.
-
Field Details
-
catalog
The underlyingGranuleCatalog
-
typeName
-
hints
-
manager
-
-
Constructor Details
-
GranuleCatalogSource
public GranuleCatalogSource(RasterManager manager, GranuleCatalog catalog, String typeName, Hints hints)
-
-
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
-
getSupportedHints
Description copied from interface:GranuleSource
Returns the set of hints that thisGranuleSource
supports viaQuery
requests.Note: the existence of a specific hint does not guarantee that it will always be honored by the implementing class.
- Specified by:
getSupportedHints
in interfaceGranuleSource
- Returns:
- a set of
RenderingHints#Key
objects; may be empty but nevernull
- See Also:
-
Hints#SGCR_FILE_VIEW
-