26 #ifndef __TERRALIB_MEMORY_INTERNAL_CACHEDRASTER_H 27 #define __TERRALIB_MEMORY_INTERNAL_CACHEDRASTER_H 30 #include "../raster/Raster.h" 66 const unsigned int dataPrefetchThreshold );
78 const unsigned int dataPrefetchThreshold );
84 std::map<std::string, std::string>
getInfo()
const 86 assert( m_blocksManager.getRaster() );
87 return m_blocksManager.getRaster()->getInfo();
92 return m_bands.size();
97 assert( m_blocksManager.getRaster() );
98 return m_blocksManager.getRaster()->getBandDataType( i );
103 assert( i < m_bands.size() );
109 assert( i < m_bands.size() );
115 assert( i < m_bands.size() );
116 return *(m_bands[ i ]);
121 assert( i < m_bands.size() );
122 return *(m_bands[ i ]);
165 #endif //__TERRALIB_MEMORY_INTERNAL_CACHEDRASTER_H int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
#define TEMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
te::rst::Band * getBand(std::size_t i)
Returns the raster i-th band.
te::rst::Raster * getMultiResLevel(const unsigned int level) const
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists...
Configuration flags for the TerraLib In-memory Data Access driver.
InterpolationMethod
Allowed interpolation methods.
te::rst::Band & operator[](std::size_t i)
Access band in i position.
RAM cached and tiled raster band blocks manager.
RAM cached and tiled raster band.
AccessPolicy
Supported data access policies (can be used as bitfield).
std::map< std::string, std::string > getInfo() const
It returns additional information about the raster.
An abstract class for raster data strucutures.
A RAM cache adaptor to an external existent raster that must always be avaliable. ...
A base class for values that can be retrieved from the data access module.
A raster band description.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
unsigned int getMultiResLevelsCount() const
Returns the current number of multi-resolution pyramid levels.
const te::rst::Band & operator[](std::size_t i) const
Access band in i position.
bool createMultiResolution(const unsigned int levels, const te::rst::InterpolationMethod interpMethod)
Create a sub-sampled multi-resolution pyramid.
std::vector< CachedBand *> m_bands
Internal raster bands.
RAM cached and tiled raster band blocks manager.
A rectified grid is the spatial support for raster data.
bool removeMultiResolution()
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
CachedBandBlocksManager m_blocksManager
Internal blocks manager.
const te::rst::Band * getBand(std::size_t i) const
Returns the raster i-th band.