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
CoverageSlice
s toSimpleFeature
s
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageSlicesCatalog.WrappedCoverageSlicesCatalog
CoverageSlicesCatalog always used an hidden H2 DB to store granules index related to a specific file.
-
Field Summary
Fields Modifier and Type Field Description static String
IMAGE_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 void
addGranule(String typeName, SimpleFeature granule, Transaction transaction)
void
addGranules(String typeName, SimpleFeatureCollection granules, Transaction transaction)
void
computeAggregateFunction(Query query, FeatureCalc function)
void
createType(String identification, String typeSpec)
void
createType(SimpleFeatureType featureType)
void
dispose()
protected void
finalize()
ReferencedEnvelope
getBounds(String typeName)
List<CoverageSlice>
getGranules(Query q)
QueryCapabilities
getQueryCapabilities(String typeName)
SimpleFeatureType
getSchema(String typeName)
String[]
getTypeNames()
boolean
hasTypeName(String typeName)
void
purge(Filter filter)
void
removeGranules(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:
SchemaException
IOException
-
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
-
-