27 #include "../core/translator/Translator.h" 31 #include "../raster/Grid.h" 41 const unsigned char maxMemPercentUsed,
42 const unsigned int dataPrefetchThreshold )
55 const unsigned int dataPrefetchThreshold )
59 dataPrefetchThreshold) )
88 for(
unsigned int bandsIdx = 0 ; bandsIdx <
m_bands.size() ; ++bandsIdx )
A raster class for memory.
unsigned int getDataPrefetchThreshold() const
The read-ahead data prefetch threshold.
Base exception class for plugin module.
A RAM cache adaptor to an external existent raster that must always be avaliable. ...
An exception class for the TerraLib In-Memory Data Access driver.
te::rst::Raster * getRaster() const
Returns the associated raster.
#define TE_TR(message)
It marks a string in order to get translated.
void free()
Free all allocated internal resources and go back to the initial state.
te::common::AccessPolicy getAccessPolicy() const
Returns the raster access policy.
RAM cached and tiled raster band.
AccessPolicy
Supported data access policies (can be used as bitfield).
An abstract class for raster data strucutures.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
RAM cached and tiled raster band.
A base class for values that can be retrieved from the data access module.
bool initialize(const te::rst::Raster &externalRaster, const unsigned char maxMemPercentUsed, const unsigned int dataPrefetchThreshold)
Initialize this instance to an initial state.
Grid * getGrid()
It returns the raster grid.
bool isInitialized() const
Returns true if this instance is initialized.
te::dt::AbstractData * clone() const
It returns a clone of this object.
std::vector< CachedBand * > m_bands
Internal raster bands.
A rectified grid is the spatial support for raster data.
unsigned int getMaxNumberOfCacheBlocks() const
The maximum number of cache blocks.
CachedBandBlocksManager m_blocksManager
Internal blocks manager.
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.