Package org.geotools.gce.imagemosaic
Class RasterManager
- Object
-
- RasterManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRasterManager.DomainDescriptorRasterManager.DomainDescriptordescribe a single domain in terms of name andParameterDescriptorthat can be used to filter values during a read operation.classRasterManager.DomainManagerARasterManager.DomainManagerclass which allows to deal with additional domains (if any) defined inside the mosaic.
-
Field Summary
Fields Modifier and Type Field Description static StringALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEYstatic StringALTERNATIVE_CRS_CACHE_SIZE_KEY
-
Constructor Summary
Constructors Constructor Description RasterManager(ImageMosaicReader parentReader, MosaicConfigurationBean configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateStore(SimpleFeatureType indexSchema)Create a store for the coverage related to thisRasterManagerusing the provided schemavoiddispose()MosaicConfigurationBeangetConfiguration()GridCoverageFactorygetCoverageFactory()StringgetCoverageIdentifier()StringgetCrsAttribute()Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)ColorModelgetDefaultCM()byte[][]getDefaultPalette()List<DimensionDescriptor>getDimensionDescriptors()RasterManager.DomainManagergetDomainsManager()RasterManagergetForGranuleCRS(RasterLayerRequest request, GranuleDescriptor templateDescriptor, ReferencedEnvelope requestBounds, ReferencedEnvelope requestBoundsQuery)Builds a RasterManager for the sub mosaic of a given template granule, and within a given search boundsGranuleCataloggetGranuleCatalog()TODO this should not leak throughGranuleSourcegetGranuleSource(boolean readOnly, Hints hints)HintsgetHints()StringgetLocationAttribute()The attribute containing the location information for the single granulesStringgetName()Returns the coverage namePAMDatasetgetPamDataset()Returns the PAM dataset for this coverage, if one is availableStringgetParentLocation()The parent directory that can be used with thePathTypeenumerationImageMosaicReadergetParentReader()PathTypegetPathType()StringgetTypeName()booleanhasAlternativeCRS(Integer epsgCode)Checks if this EPSG code matches at least one feature.voidinitialize(boolean checkDomains)voidinitialize(boolean checkDomains, Transaction transaction)booleanisExpandMe()Collection<GridCoverage2D>read(GeneralParameterValue[] params)voidreloadPamDataset()Recomputes the summary PAM databasetvoidremoveStore(String typeName, boolean forceDelete, boolean checkForReferences)Remove a store for the coverage related to thisRasterManagervoidsetConfiguration(MosaicConfigurationBean configuration)
-
-
-
Field Detail
-
ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY
public static final String ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY
- See Also:
- Constant Field Values
-
ALTERNATIVE_CRS_CACHE_SIZE_KEY
public static final String ALTERNATIVE_CRS_CACHE_SIZE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RasterManager
public RasterManager(ImageMosaicReader parentReader, MosaicConfigurationBean configuration) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public Collection<GridCoverage2D> read(GeneralParameterValue[] params) throws IOException
- Throws:
IOException
-
getPathType
public PathType getPathType()
-
getCoverageIdentifier
public String getCoverageIdentifier()
-
getHints
public Hints getHints()
-
getCoverageFactory
public GridCoverageFactory getCoverageFactory()
-
getTypeName
public String getTypeName()
-
hasAlternativeCRS
public boolean hasAlternativeCRS(Integer epsgCode) throws IOException
Checks if this EPSG code matches at least one feature. Since this method may perform a database query to find out, it's important to call it last while performing conditionals, leaving cheaper tests first.- Throws:
IOException
-
getGranuleCatalog
public GranuleCatalog getGranuleCatalog()
TODO this should not leak through
-
createStore
public void createStore(SimpleFeatureType indexSchema) throws IOException
Create a store for the coverage related to thisRasterManagerusing the provided schema- Throws:
IOException
-
removeStore
public void removeStore(String typeName, boolean forceDelete, boolean checkForReferences) throws IOException
Remove a store for the coverage related to thisRasterManager- Throws:
IOException
-
getGranuleSource
public GranuleSource getGranuleSource(boolean readOnly, Hints hints)
-
getDimensionDescriptors
public List<DimensionDescriptor> getDimensionDescriptors()
-
getConfiguration
public MosaicConfigurationBean getConfiguration()
-
setConfiguration
public void setConfiguration(MosaicConfigurationBean configuration)
-
dispose
public void dispose()
-
initialize
public void initialize(boolean checkDomains) throws IOException- Throws:
IOException
-
initialize
public void initialize(boolean checkDomains, Transaction transaction) throws IOException- Throws:
IOException
-
getDefaultCM
public ColorModel getDefaultCM()
-
getDefaultPalette
public byte[][] getDefaultPalette()
-
getDomainsManager
public RasterManager.DomainManager getDomainsManager()
-
isExpandMe
public boolean isExpandMe()
-
getParentReader
public ImageMosaicReader getParentReader()
-
getForGranuleCRS
public RasterManager getForGranuleCRS(RasterLayerRequest request, GranuleDescriptor templateDescriptor, ReferencedEnvelope requestBounds, ReferencedEnvelope requestBoundsQuery) throws Exception
Builds a RasterManager for the sub mosaic of a given template granule, and within a given search bounds- Throws:
Exception
-
getCrsAttribute
public String getCrsAttribute() throws IOException
Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)- Throws:
IOException
-
getParentLocation
public String getParentLocation()
The parent directory that can be used with thePathTypeenumeration
-
getLocationAttribute
public String getLocationAttribute()
The attribute containing the location information for the single granules
-
getName
public String getName()
Returns the coverage name
-
getPamDataset
public PAMDataset getPamDataset()
Returns the PAM dataset for this coverage, if one is available
-
reloadPamDataset
public void reloadPamDataset() throws IOExceptionRecomputes the summary PAM databaset- Throws:
IOException
-
-