public interface GranuleSource
Modifier and Type | Field and Description |
---|---|
static Hints.Key |
FILE_VIEW
Asks a
GranuleSource to return a file based view of the granules instead of a slice
based view. |
static String |
FILES
Used as key in the granule feature user data, pointing to a
FileGroupProvider.FileGroup with the infos about the group of files
composing |
static Hints.Key |
NATIVE_BOUNDS |
static String |
NATIVE_BOUNDS_KEY |
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 . |
default Set<RenderingHints.Key> |
getSupportedHints()
Returns the set of hints that this
GranuleSource supports via Query requests. |
static final Hints.Key NATIVE_BOUNDS
static final String NATIVE_BOUNDS_KEY
static final Hints.Key FILE_VIEW
GranuleSource
to 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 full FileGroupProvider.FileGroup
as the feature metadata under the FILES
key.static final String FILES
FileGroupProvider.FileGroup
with the infos about the group of files
composingSimpleFeatureCollection getGranules(Query q) throws IOException
SimpleFeatureCollection
, based on a Query
.q
- the Query
to select granulesIOException
int getCount(Query q) throws IOException
Query
, taking
into account any settings for max features and start index set on the Query
.q
- the Query
to select granulesIOException
ReferencedEnvelope getBounds(Query q) throws IOException
Query
.q
- the Query
to select granulesIOException
SimpleFeatureType getSchema() throws IOException
GranuleSource
.IOException
void dispose() throws IOException
IOException
default Set<RenderingHints.Key> getSupportedHints()
GranuleSource
supports via Query
requests.
Note: the existence of a specific hint does not guarantee that it will always be honored by the implementing class.
RenderingHints#Key
objects; may be empty but never null
Hints#SGCR_FILE_VIEW
Copyright © 1996–2023 Geotools. All rights reserved.