public class CachingDataStoreGranuleCatalog extends GranuleCatalog
Since the ImageMosaicReader
heavily uses spatial queries to find out which are the
involved tiles during mosaic creation, it is better to do some caching and keep the index in
memory as much as possible, hence we came up with this index.
hints, multiScaleROIProvider
Constructor and Description |
---|
CachingDataStoreGranuleCatalog(AbstractGTDataStoreGranuleCatalog adaptee) |
addGranule, getFootprintFiles, getGranuleFootprint, mergeHints, setMultiScaleROIProvider
public CachingDataStoreGranuleCatalog(AbstractGTDataStoreGranuleCatalog adaptee)
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException
addGranules
in class GranuleCatalog
IOException
public void computeAggregateFunction(Query q, FeatureCalc function) throws IOException
computeAggregateFunction
in class GranuleCatalog
IOException
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException
createType
in class GranuleCatalog
IOException
SchemaException
public void createType(SimpleFeatureType featureType) throws IOException
createType
in class GranuleCatalog
IOException
public void createType(String identification, String typeSpec) throws SchemaException, IOException
createType
in class GranuleCatalog
SchemaException
IOException
public void dispose()
dispose
in class GranuleCatalog
public BoundingBox getBounds(String typeName)
getBounds
in class GranuleCatalog
public BoundingBox getBounds(String typeName, Transaction t)
getBounds
in class GranuleCatalog
public SimpleFeatureCollection getGranules(Query q) throws IOException
getGranules
in class GranuleCatalog
IOException
public SimpleFeatureCollection getGranules(Query q, Transaction t) throws IOException
getGranules
in class GranuleCatalog
IOException
public int getGranulesCount(Query q) throws IOException
getGranulesCount
in class GranuleCatalog
IOException
public void getGranuleDescriptors(Query q, GranuleCatalogVisitor visitor) throws IOException
getGranuleDescriptors
in class GranuleCatalog
IOException
protected GranuleDescriptor getGranuleDescriptor(SimpleFeature sf)
protected boolean polygonOverlap(Geometry g1, Geometry g2)
public QueryCapabilities getQueryCapabilities(String typeName)
getQueryCapabilities
in class GranuleCatalog
public SimpleFeatureType getType(String typeName) throws IOException
getType
in class GranuleCatalog
IOException
public int removeGranules(Query query)
removeGranules
in class GranuleCatalog
public int removeGranules(Query query, Transaction transaction)
removeGranules
in class GranuleCatalog
public String[] getTypeNames()
getTypeNames
in class GranuleCatalog
public GranuleCatalog getAdaptee()
public void removeType(String typeName) throws IOException
removeType
in class GranuleCatalog
IOException
public void drop() throws IOException
GranuleCatalog
This is usuallu done when deleting an ImageMosaic storre.
drop
in class GranuleCatalog
IOException
- in case something bad happensCopyright © 1996–2022 Geotools. All rights reserved.