Package org.geotools.gce.imagemosaic
Class RasterManager
Object
RasterManager
- All Implemented Interfaces:
Cloneable
- Author:
- Simone Giannecchini, GeoSolutions SAS, Daniele Romagnoli, GeoSolutions SAS
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
RasterManager.DomainDescriptor
describe a single domain in terms of name andParameterDescriptor
that can be used to filter values during a read operation.class
ARasterManager.DomainManager
class which allows to deal with additional domains (if any) defined inside the mosaic. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRasterManager
(ImageMosaicReader parentReader, MosaicConfigurationBean configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createStore
(SimpleFeatureType indexSchema) Create a store for the coverage related to thisRasterManager
using the provided schemavoid
dispose()
Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)byte[][]
getForGranuleCRS
(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 boundsTODO this should not leak throughgetGranuleSource
(boolean readOnly, Hints hints) getHints()
The attribute containing the location information for the single granulesgetName()
Returns the coverage namePAMDataset
Returns the PAM dataset for this coverage, if one is availableThe parent directory that can be used with thePathType
enumerationboolean
hasAlternativeCRS
(Integer epsgCode) Checks if this EPSG code matches at least one feature.void
initialize
(boolean checkDomains) void
initialize
(boolean checkDomains, Transaction transaction) boolean
read
(GeneralParameterValue[] params) void
Recomputes the summary PAM databasetvoid
removeStore
(String typeName, boolean forceDelete, boolean checkForReferences) Remove a store for the coverage related to thisRasterManager
void
setConfiguration
(MosaicConfigurationBean configuration)
-
Field Details
-
ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY
- See Also:
-
ALTERNATIVE_CRS_CACHE_SIZE_KEY
- See Also:
-
-
Constructor Details
-
RasterManager
public RasterManager(ImageMosaicReader parentReader, MosaicConfigurationBean configuration) throws IOException - Throws:
IOException
-
-
Method Details
-
read
- Throws:
IOException
-
getPathType
-
getCoverageIdentifier
-
getHints
-
getCoverageFactory
-
getTypeName
-
hasAlternativeCRS
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
TODO this should not leak through -
createStore
Create a store for the coverage related to thisRasterManager
using 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
-
getDimensionDescriptors
-
getConfiguration
-
setConfiguration
-
dispose
public void dispose() -
initialize
- Throws:
IOException
-
initialize
- Throws:
IOException
-
getDefaultCM
-
getDefaultPalette
public byte[][] getDefaultPalette() -
getDomainsManager
-
isExpandMe
public boolean isExpandMe() -
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
Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)- Throws:
IOException
-
getParentLocation
The parent directory that can be used with thePathType
enumeration -
getLocationAttribute
The attribute containing the location information for the single granules -
getName
Returns the coverage name -
getPamDataset
public PAMDataset getPamDataset()Returns the PAM dataset for this coverage, if one is available -
reloadPamDataset
Recomputes the summary PAM databaset- Throws:
IOException
-