Package org.geotools.coverage.io.catalog
Class CoverageSlicesCatalog
Object
CoverageSlicesCatalog
Before GT 35.x version this class relied on an underlying
DataStore (H2/PostGIS/...) to persist and query
slice metadata (time/elevation/other dimensions) and the corresponding imageIndex.
Current implementation delegates query planning and slice iteration to a CoverageSlicesCatalog.SliceProvider. That can compute
matches on-the-fly (e.g. using a deterministic Var/T/Z -> imageIndex mapping).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA CoverageSlices context holds the typeName and underlying schema of a coverage, plus a SliceProvider instance to extract CoverageSlices from that schema via a provided query.static interfaceResolver that can translate GeoToolsQueryobjects into a stream of matching slices. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeAggregateFunction(Query query, FeatureCalc function) Returns bounds for granules matching the provided query without loading them all.intReturns the number of granules matching the provided query without loading them all.getGranules(Query q) String[]Streams matchingCoverageSlices without materializing them into a list.void
-
Field Details
-
IMAGE_INDEX_ATTR
- See Also:
-
-
Constructor Details
-
CoverageSlicesCatalog
public CoverageSlicesCatalog()
-
-
Method Details
-
getTypeNames
-
iterateGranules
Streams matchingCoverageSlices without materializing them into a list.This is the preferred entry point for callers that want to avoid eagerly loading all slices.
- Throws:
IOException
-
getCount
Returns the number of granules matching the provided query without loading them all. Falls back to iteration if the underlying store cannot compute counts.- Throws:
IOException
-
getBounds
Returns bounds for granules matching the provided query without loading them all. Falls back to feature-collection bounds if the underlying store can't compute it directly.- Throws:
IOException
-
getSchema
- Throws:
IOException
-
computeAggregateFunction
- Throws:
IOException
-
getGranules
- Throws:
IOException
-
registerContext
-