public class GranuleCatalogSource extends Object implements GranuleSource
GranuleSource implementation wrapping a GranuleCatalog.| Modifier and Type | Field and Description |
|---|---|
protected GranuleCatalog |
catalog
The underlying
GranuleCatalog |
protected Hints |
hints |
protected RasterManager |
manager |
protected String |
typeName |
FILE_VIEW, FILES, NATIVE_BOUNDS, NATIVE_BOUNDS_KEY| Constructor and Description |
|---|
GranuleCatalogSource(RasterManager manager,
GranuleCatalog catalog,
String typeName,
Hints hints) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
This will free/release any resource (cached granules, ...).
|
ReferencedEnvelope |
getBounds(Query q)
Get the spatial bounds of the granules that would be returned by the given
Query. |
int |
getCount(Query q)
Gets the number of the granules that would be returned by the given
Query, taking
into account any settings for max features and start index set on the Query. |
SimpleFeatureCollection |
getGranules(Query q)
Retrieves granules, in the form of a
SimpleFeatureCollection, based on a Query. |
SimpleFeatureType |
getSchema()
Retrieves the schema (feature type) that will apply to granules retrieved from this
GranuleSource. |
Set<RenderingHints.Key> |
getSupportedHints()
Returns the set of hints that this
GranuleSource supports via Query requests. |
protected GranuleCatalog catalog
GranuleCatalogprotected String typeName
protected Hints hints
protected RasterManager manager
public GranuleCatalogSource(RasterManager manager, GranuleCatalog catalog, String typeName, Hints hints)
public SimpleFeatureCollection getGranules(Query q) throws IOException
GranuleSourceSimpleFeatureCollection, based on a Query.getGranules in interface GranuleSourceq - the Query to select granulesIOExceptionpublic int getCount(Query q) throws IOException
GranuleSourceQuery, taking
into account any settings for max features and start index set on the Query.getCount in interface GranuleSourceq - the Query to select granulesIOExceptionpublic ReferencedEnvelope getBounds(Query q) throws IOException
GranuleSourceQuery.getBounds in interface GranuleSourceq - the Query to select granulesIOExceptionpublic SimpleFeatureType getSchema() throws IOException
GranuleSourceGranuleSource.getSchema in interface GranuleSourceIOExceptionpublic void dispose()
throws IOException
GranuleSourcedispose in interface GranuleSourceIOExceptionpublic Set<RenderingHints.Key> getSupportedHints()
GranuleSourceGranuleSource supports via Query requests.
Note: the existence of a specific hint does not guarantee that it will always be honored by the implementing class.
getSupportedHints in interface GranuleSourceRenderingHints#Key objects; may be empty but never nullHints#SGCR_FILE_VIEWCopyright © 1996–2021 Geotools. All rights reserved.