27 #include "../core/translator/Translator.h" 42 assert(rasters.empty() ==
false);
44 const std::size_t nrasters = rasters.size();
46 for(std::size_t i = 0; i != nrasters; ++i)
50 const std::size_t nbands = r->getNumberOfBands();
52 for(std::size_t
b = 0;
b != nbands; ++
b)
94 assert(
m_bands[i]->getProperty());
96 return m_bands[i]->getProperty()->getType();
An exception class for the Raster module.
It gives access to values in one band (dimension) of a raster.
It describes one band (or dimension) of a raster.
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.
Base exception class for plugin module.
A proxy class for bands of several rasters over the same region.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
#define TE_TR(message)
It marks a string in order to get translated.
std::map< std::string, std::string > m_rinfo
Proxy raster additional information.
const Band & operator[](std::size_t i) const
Access band in i position.
std::vector< RasterPtr > m_rasters
The list of proxed rasters.
Grid * m_grid
The spatial support for raster data.
AccessPolicy
Supported data access policies (can be used as bitfield).
boost::shared_ptr< Raster > RasterPtr
void swap(std::size_t first, std::size_t second)
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
std::vector< Band * > m_bands
The proxy raster bands.
~ProxyRaster()
Destructor.
const Band * getBand(std::size_t i) const
Returns the raster i-th band.
A raster band description.
Grid * getGrid()
It returns the raster grid.
A proxy class for bands of several rasters over the same region.
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.
ProxyRaster(const std::vector< RasterPtr > &rasters)
Constructor from a set of rasters.