org.geotools.gce.imagemosaic.catalog
Class GranuleCatalog
Object
GranuleCatalog
public abstract class GranuleCatalog
- extends Object
Method Summary |
void |
addGranule(String typeName,
SimpleFeature granule,
Transaction transaction)
|
abstract void |
addGranules(String typeName,
Collection<SimpleFeature> granules,
Transaction transaction)
|
abstract void |
computeAggregateFunction(Query q,
FeatureCalc function)
|
abstract void |
createType(SimpleFeatureType featureType)
|
abstract void |
createType(String identification,
String typeSpec)
|
abstract void |
createType(String namespace,
String typeName,
String typeSpec)
|
abstract void |
dispose()
|
abstract BoundingBox |
getBounds(String typeName)
|
abstract void |
getGranuleDescriptors(Query q,
GranuleCatalogVisitor visitor)
|
protected MultiLevelROI |
getGranuleFootprint(SimpleFeature sf)
Returns the footprint for the given granule. |
abstract SimpleFeatureCollection |
getGranules(Query q)
|
abstract int |
getGranulesCount(Query q)
|
abstract QueryCapabilities |
getQueryCapabilities(String typeName)
|
abstract SimpleFeatureType |
getType(String typeName)
|
abstract String[] |
getTypeNames()
|
protected Query |
mergeHints(Query q)
Merges the wrapper hints with the query ones, making sure not to overwrite the query ones |
abstract int |
removeGranules(Query query)
|
abstract void |
removeType(String typeName)
|
void |
setMultiScaleROIProvider(MultiLevelROIProvider footprintProvider)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hints
protected final Hints hints
multiScaleROIProvider
protected MultiLevelROIProvider multiScaleROIProvider
GranuleCatalog
public GranuleCatalog(Hints hints)
- Parameters:
hints
-
addGranule
public void addGranule(String typeName,
SimpleFeature granule,
Transaction transaction)
throws IOException
- Throws:
IOException
addGranules
public abstract void addGranules(String typeName,
Collection<SimpleFeature> granules,
Transaction transaction)
throws IOException
- Throws:
IOException
computeAggregateFunction
public abstract void computeAggregateFunction(Query q,
FeatureCalc function)
throws IOException
- Throws:
IOException
createType
public abstract void createType(String namespace,
String typeName,
String typeSpec)
throws IOException,
SchemaException
- Throws:
IOException
SchemaException
createType
public abstract void createType(SimpleFeatureType featureType)
throws IOException
- Throws:
IOException
createType
public abstract void createType(String identification,
String typeSpec)
throws SchemaException,
IOException
- Throws:
SchemaException
IOException
dispose
public abstract void dispose()
getBounds
public abstract BoundingBox getBounds(String typeName)
getGranules
public abstract SimpleFeatureCollection getGranules(Query q)
throws IOException
- Throws:
IOException
getGranulesCount
public abstract int getGranulesCount(Query q)
throws IOException
- Throws:
IOException
getGranuleDescriptors
public abstract void getGranuleDescriptors(Query q,
GranuleCatalogVisitor visitor)
throws IOException
- Throws:
IOException
getQueryCapabilities
public abstract QueryCapabilities getQueryCapabilities(String typeName)
getType
public abstract SimpleFeatureType getType(String typeName)
throws IOException
- Throws:
IOException
removeType
public abstract void removeType(String typeName)
throws IOException
- Throws:
IOException
removeGranules
public abstract int removeGranules(Query query)
getTypeNames
public abstract String[] getTypeNames()
mergeHints
protected Query mergeHints(Query q)
- Merges the wrapper hints with the query ones, making sure not to overwrite the query ones
- Parameters:
q
-
- Returns:
setMultiScaleROIProvider
public void setMultiScaleROIProvider(MultiLevelROIProvider footprintProvider)
getGranuleFootprint
protected MultiLevelROI getGranuleFootprint(SimpleFeature sf)
- Returns the footprint for the given granule. Mind, when applying insets we might have the
case of the geometry being empty (negative buffer eroded it fully), in that case the granule
must not be loaded
- Parameters:
sf
-
- Returns:
Copyright © 1996-2014 Geotools. All Rights Reserved.