28 #include "../core/translator/Translator.h" 45 const unsigned char maxMemPercentUsed )
85 std::map<std::string, std::string> info;
123 for(
unsigned int bandsIdx = 0 ; bandsIdx <
m_bands.size() ; ++bandsIdx )
An exception class for the Raster module.
void free()
Free all allocated internal resources and go back to the initial state.
It describes one band (or dimension) of a raster.
SynchronizedBandBlocksManager m_blocksManager
Internal blocks manager.
Base exception class for plugin module.
te::dt::AbstractData * clone() const
It returns a clone of this object.
An access synchronizer to be used in SynchronizedRaster raster instances.
#define TE_TR(message)
It marks a string in order to get translated.
boost::mutex m_mutex
General sync mutex;.
Grid * m_grid
The spatial support for raster data.
AccessPolicy
Supported data access policies (can be used as bitfield).
unsigned int getMaxNumberOfCacheBlocks() const
The maximum number of cache blocks.
virtual std::map< std::string, std::string > getInfo() const =0
It returns additional information about the raster.
Raster & m_raster
The input raster.
An adapter class to allow concurrent access to raster data by multiple threads.
An abstract class for raster data strucutures.
Syncrhonized raster band.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
virtual int getBandDataType(std::size_t i) const =0
Returns the data type in a particular band (or dimension).
te::rst::Raster * getRaster() const
Returns the associated raster.
A base class for values that can be retrieved from the data access module.
bool isInitialized() const
Returns true if this instance is initialized.
Grid * getGrid()
It returns the raster grid.
bool initialize(RasterSynchronizer &sync, const unsigned char maxMemPercentUsed)
Initialize this instance to an initial state.
std::vector< SynchronizedBand * > m_bands
Internal raster bands.
A rectified grid is the spatial support for raster data.
RasterSynchronizer * getSynchronizer() const
Return a pointer to the assotiated synchronizer instance or NULL if there is none.
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.
A rectified grid is the spatial support for raster data.
std::map< std::string, std::string > getInfo() const
It returns additional information about the raster.