Package org.geotools.coverage.io.catalog
Class CoverageSlicesCatalog
- Object
-
- CoverageSlicesCatalog
-
- Direct Known Subclasses:
CoverageSlicesCatalog.WrappedCoverageSlicesCatalog
public class CoverageSlicesCatalog extends Object
This class simply builds an index for fast indexed queries.TODO: we may consider converting
CoverageSlices toSimpleFeatures
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoverageSlicesCatalog.WrappedCoverageSlicesCatalogCoverageSlicesCatalog always used an hidden H2 DB to store granules index related to a specific file.
-
Field Summary
Fields Modifier and Type Field Description static StringIMAGE_INDEX_ATTR
-
Constructor Summary
Constructors Constructor Description CoverageSlicesCatalog(String database, File parentLocation)CoverageSlicesCatalog(String database, File parentLocation, Repository repository)CoverageSlicesCatalog(DataStoreConfiguration datastoreConfig)CoverageSlicesCatalog(DataStoreConfiguration datastoreConfig, Repository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGranule(String typeName, SimpleFeature granule, Transaction transaction)voidaddGranules(String typeName, SimpleFeatureCollection granules, Transaction transaction)voidcomputeAggregateFunction(Query query, FeatureCalc function)voidcreateType(String identification, String typeSpec)voidcreateType(SimpleFeatureType featureType)voiddispose()protected voidfinalize()ReferencedEnvelopegetBounds(String typeName)List<CoverageSlice>getGranules(Query q)QueryCapabilitiesgetQueryCapabilities(String typeName)SimpleFeatureTypegetSchema(String typeName)String[]getTypeNames()booleanhasTypeName(String typeName)voidpurge(Filter filter)voidremoveGranules(String typeName, Filter filter, Transaction transaction)
-
-
-
Field Detail
-
IMAGE_INDEX_ATTR
public static final String IMAGE_INDEX_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoverageSlicesCatalog
public CoverageSlicesCatalog(String database, File parentLocation, Repository repository)
-
CoverageSlicesCatalog
public CoverageSlicesCatalog(DataStoreConfiguration datastoreConfig)
-
CoverageSlicesCatalog
public CoverageSlicesCatalog(DataStoreConfiguration datastoreConfig, Repository repository)
-
-
Method Detail
-
getTypeNames
public String[] getTypeNames()
-
hasTypeName
public boolean hasTypeName(String typeName)
-
dispose
public void dispose()
-
addGranule
public void addGranule(String typeName, SimpleFeature granule, Transaction transaction) throws IOException
- Throws:
IOException
-
addGranules
public void addGranules(String typeName, SimpleFeatureCollection granules, Transaction transaction) throws IOException
- Throws:
IOException
-
getGranules
public List<CoverageSlice> getGranules(Query q) throws IOException
- Throws:
IOException
-
getBounds
public ReferencedEnvelope getBounds(String typeName)
-
createType
public void createType(SimpleFeatureType featureType) throws IOException
- Throws:
IOException
-
createType
public void createType(String identification, String typeSpec) throws SchemaException, IOException
- Throws:
SchemaExceptionIOException
-
getSchema
public SimpleFeatureType getSchema(String typeName) throws IOException
- Throws:
IOException
-
computeAggregateFunction
public void computeAggregateFunction(Query query, FeatureCalc function) throws IOException
- Throws:
IOException
-
getQueryCapabilities
public QueryCapabilities getQueryCapabilities(String typeName)
-
finalize
protected void finalize() throws Throwable
-
removeGranules
public void removeGranules(String typeName, Filter filter, Transaction transaction) throws IOException
- Throws:
IOException
-
purge
public void purge(Filter filter) throws IOException
- Throws:
IOException
-
-