Go to the documentation of this file.
26 #ifndef __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDRASTER_H
27 #define __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDRASTER_H
79 std::map<std::string, std::string>
getInfo()
const;
83 return m_bands.size();
90 assert( i < m_bands.size() );
96 assert( i < m_bands.size() );
102 assert( i < m_bands.size() );
103 return *(m_bands[ i ]);
108 assert( i < m_bands.size() );
109 return *(m_bands[ i ]);
164 #endif //__TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDRASTER_H
Raster implementaton for TerraLib 4.x.
te::rst::Band * getBand(std::size_t i)
Returns the raster i-th band.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
A raster band description.
void free()
Free all allocated internal resources and go back to the initial state.
const te::rst::Band * getBand(std::size_t i) const
Returns the raster i-th band.
te::rst::Band & operator[](std::size_t i)
Access band in i position.
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
An abstract class for raster data strucutures.
An access synchronizer to be used in SynchronizedRaster raster instances.
const te::rst::Band & operator[](std::size_t i) const
Access band in i position.
unsigned int getMultiResLevelsCount() const
Returns the current number of multi-resolution pyramid levels.
SynchronizedRaster(RasterSynchronizer &sync, const unsigned char maxMemPercentUsed)
Constructor.
A rectified grid is the spatial support for raster data.
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
InterpolationMethod
Allowed interpolation methods.
Synchronized raster raster band blocks manager.
std::vector< SynchronizedBand * > m_bands
Internal raster bands.
bool removeMultiResolution()
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
SynchronizedRaster(te::rst::Grid *grid, te::common::AccessPolicy p=te::common::RAccess)
Raster * getMultiResLevel(const unsigned int level) const
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists.
An adapter class to allow concurrent access to raster data by multiple threads.
void updateRasterInfo()
update This instance raster info.
A base class for values that can be retrieved from the data access module.
Synchronized raster raster band blocks manager.
SynchronizedRaster(const unsigned int maxNumberOfCacheBlocks, RasterSynchronizer &sync)
Constructor.
te::dt::AbstractData * clone() const
It returns a clone of this object.
Proxy configuration file for TerraView (see terraview_config.h).
bool createMultiResolution(const unsigned int levels, const InterpolationMethod interpMethod)
Create a sub-sampled multi-resolution pyramid.
SynchronizedBandBlocksManager m_blocksManager
Internal blocks manager.
An access synchronizer to be used in SynchronizedRaster raster instances.
std::map< std::string, std::string > getInfo() const
It returns additional information about the raster.
Syncrhonized raster band.
std::map< std::string, std::string > m_rasterInfo
This instance info.
AccessPolicy
Supported data access policies (can be used as bitfield).