Package org.geotools.coverage.io.catalog
Class CoverageSlicesCatalog.WrappedCoverageSlicesCatalog
- Object
-
- CoverageSlicesCatalog
-
- WrappedCoverageSlicesCatalog
-
- Enclosing class:
- CoverageSlicesCatalog
public static class CoverageSlicesCatalog.WrappedCoverageSlicesCatalog extends CoverageSlicesCatalog
CoverageSlicesCatalog always used an hidden H2 DB to store granules index related to a specific file.Starting from 14.x it also can be setup on top of a shared PostGIS datastore.
Using a PostGIS shared index, we need to add a LOCATION attribute to distinguish the different granules, as well as add a Filter setting the LOCATION value to each query from a reader (1 reader <-> 1 file <-> 1 location)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class CoverageSlicesCatalog
CoverageSlicesCatalog.WrappedCoverageSlicesCatalog
-
-
Field Summary
-
Fields inherited from class CoverageSlicesCatalog
IMAGE_INDEX_ATTR
-
-
Constructor Summary
Constructors Constructor Description WrappedCoverageSlicesCatalog(DataStoreConfiguration config, File file, Repository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeAggregateFunction(Query query, FeatureCalc function)
List<CoverageSlice>
getGranules(Query q)
void
removeGranules(String typeName, Filter filter, Transaction transaction)
-
Methods inherited from class CoverageSlicesCatalog
addGranule, addGranules, createType, createType, dispose, finalize, getBounds, getQueryCapabilities, getSchema, getTypeNames, hasTypeName, purge
-
-
-
-
Constructor Detail
-
WrappedCoverageSlicesCatalog
public WrappedCoverageSlicesCatalog(DataStoreConfiguration config, File file, Repository repository) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getGranules
public List<CoverageSlice> getGranules(Query q) throws IOException
- Overrides:
getGranules
in classCoverageSlicesCatalog
- Throws:
IOException
-
computeAggregateFunction
public void computeAggregateFunction(Query query, FeatureCalc function) throws IOException
- Overrides:
computeAggregateFunction
in classCoverageSlicesCatalog
- Throws:
IOException
-
removeGranules
public void removeGranules(String typeName, Filter filter, Transaction transaction) throws IOException
- Overrides:
removeGranules
in classCoverageSlicesCatalog
- Throws:
IOException
-
-