Package org.geotools.coverage.grid.io
Interface GranuleSource
- All Known Subinterfaces:
GranuleStore
- All Known Implementing Classes:
CoverageSlicesCatalogSource,GranuleCatalogSource,GranuleCatalogStore,RenamingGranuleSource,RenamingGranuleStore
public interface GranuleSource
API to operate on Granules data.
- Author:
- Simone Giannecchini, GeoSolutions SAS, Andrea Aime, GeoSolutions SAS, Daniele Romagnoli, GeoSolutions SAS
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Hints.KeyAsks aGranuleSourceto return a file based view of the granules instead of a slice based view.static final StringUsed as key in the granule feature user data, pointing to aFileGroupProvider.FileGroupwith the infos about the group of files composingstatic final Hints.Keystatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()This will free/release any resource (cached granules, ...).Get the spatial bounds of the granules that would be returned by the givenQuery.intGets 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.default Set<RenderingHints.Key>Returns the set of hints that thisGranuleSourcesupports viaQueryrequests.
-
Field Details
-
NATIVE_BOUNDS
-
NATIVE_BOUNDS_KEY
- See Also:
-
FILE_VIEW
Asks aGranuleSourceto return a file based view of the granules instead of a slice based view. In case a granule file contains more than one slice (e.g., NetCDF). The returned features will also miss an eventual location attribute, and include a fullFileGroupProvider.FileGroupas the feature metadata under theFILESkey. -
FILES
Used as key in the granule feature user data, pointing to aFileGroupProvider.FileGroupwith the infos about the group of files composing- See Also:
-
-
Method Details
-
getGranules
Retrieves granules, in the form of aSimpleFeatureCollection, based on aQuery.- Parameters:
q- theQueryto select granules- Returns:
- the resulting granules.
- Throws:
IOException
-
getCount
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.- Parameters:
q- theQueryto select granules- Returns:
- the number of granules
- Throws:
IOException
-
getBounds
Get the spatial bounds of the granules that would be returned by the givenQuery.- Parameters:
q- theQueryto select granules- Returns:
- The bounding envelope of the requested data
- Throws:
IOException
-
getSchema
Retrieves the schema (feature type) that will apply to granules retrieved from thisGranuleSource.- Throws:
IOException
-
dispose
This will free/release any resource (cached granules, ...).- Throws:
IOException
-
getSupportedHints
Returns the set of hints that thisGranuleSourcesupports viaQueryrequests.Note: the existence of a specific hint does not guarantee that it will always be honored by the implementing class.
- Returns:
- a set of
RenderingHints#Keyobjects; may be empty but nevernull - See Also:
-
Hints#SGCR_FILE_VIEW
-