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 TypeClassDescriptionclassRasterManager.DomainDescriptordescribe a single domain in terms of name andParameterDescriptorthat can be used to filter values during a read operation.classARasterManager.DomainManagerclass 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 TypeMethodDescriptionvoidcreateStore(SimpleFeatureType indexSchema) Create a store for the coverage related to thisRasterManagerusing the provided schemavoiddispose()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 namePAMDatasetReturns the PAM dataset for this coverage, if one is availableThe parent directory that can be used with thePathTypeenumerationbooleanhasAlternativeCRS(Integer epsgCode) Checks if this EPSG code matches at least one feature.voidinitialize(boolean checkDomains) voidinitialize(boolean checkDomains, Transaction transaction) booleanread(GeneralParameterValue[] params) voidRecomputes the summary PAM databasetvoidremoveStore(String typeName, boolean forceDelete, boolean checkForReferences) Remove a store for the coverage related to thisRasterManagervoidsetConfiguration(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 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
-
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 thePathTypeenumeration -
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
-