Package org.geotools.gce.imagemosaic
Class RasterManager
- Object
-
- RasterManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RasterManager.DomainDescriptor
RasterManager.DomainDescriptor
describe a single domain in terms of name andParameterDescriptor
that can be used to filter values during a read operation.class
RasterManager.DomainManager
ARasterManager.DomainManager
class which allows to deal with additional domains (if any) defined inside the mosaic.
-
Field Summary
Fields Modifier and Type Field Description static String
ALTERNATIVE_CRS_CACHE_EXPIRATION_SECONDS_KEY
static String
ALTERNATIVE_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 void
createStore(SimpleFeatureType indexSchema)
Create a store for the coverage related to thisRasterManager
using the provided schemavoid
dispose()
MosaicConfigurationBean
getConfiguration()
GridCoverageFactory
getCoverageFactory()
String
getCoverageIdentifier()
String
getCrsAttribute()
Returns the name of the crs attribute in heterogeneous mosaics (for non-heterogenous ones, it will return null)ColorModel
getDefaultCM()
byte[][]
getDefaultPalette()
List<DimensionDescriptor>
getDimensionDescriptors()
RasterManager.DomainManager
getDomainsManager()
RasterManager
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 boundsGranuleCatalog
getGranuleCatalog()
TODO this should not leak throughGranuleSource
getGranuleSource(boolean readOnly, Hints hints)
Hints
getHints()
String
getLocationAttribute()
The attribute containing the location information for the single granulesString
getName()
Returns the coverage namePAMDataset
getPamDataset()
Returns the PAM dataset for this coverage, if one is availableString
getParentLocation()
The parent directory that can be used with thePathType
enumerationImageMosaicReader
getParentReader()
PathType
getPathType()
String
getTypeName()
boolean
hasAlternativeCRS(Integer epsgCode)
Checks if this EPSG code matches at least one feature.void
initialize(boolean checkDomains)
void
initialize(boolean checkDomains, Transaction transaction)
boolean
isExpandMe()
Collection<GridCoverage2D>
read(GeneralParameterValue[] params)
void
reloadPamDataset()
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 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 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
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 thePathType
enumeration
-
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 IOException
Recomputes the summary PAM databaset- Throws:
IOException
-
-