27 #include "../common/Translator.h"
28 #include "../raster/BandProperty.h"
29 #include "../raster/Grid.h"
30 #include "../raster/RasterProperty.h"
37 #include <boost/ptr_container/ptr_vector.hpp>
40 #include <terralib/kernel/TeRaster.h>
46 Impl(TeRaster* iraster);
79 throw Exception(
TR_TERRALIB4(
"This method is not supported by TerraLib 4.x driver!"));
90 throw Exception(
TR_TERRALIB4(
"This method is not supported by TerraLib 4.x driver!"));
100 return m_pImpl->m_raster->nBands();
105 TeDataType dt = m_pImpl->m_raster->params().dataType_[i];
112 return &m_pImpl->m_bands[i];
117 return &m_pImpl->m_bands[i];
122 return m_pImpl->m_bands[i];
127 return m_pImpl->m_bands[i];
132 throw Exception(
TR_TERRALIB4(
"This method is not supported by TerraLib 4.x driver!"));
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions.
std::auto_ptr< te::dt::Property > Convert2T5(const TeAttributeRep &attRep)
It creates a valid TerraLib 5 property given a valid TerraLib 4.x attribute representation.
#define TR_TERRALIB4(message)
It marks a string in order to get translated. This is a special mark used in the DataAccess module of...
Grid * m_grid
The spatial support for raster data.
const te::rst::Band & operator[](std::size_t i) const
Access band in i position.
AccessPolicy
Supported data access policies (can be used as bitfield).
boost::ptr_vector< Band > m_bands
A raster band description.
A rectified grid is the spatial support for raster data.
te::dt::AbstractData * clone() const
It returns a clone of this object.
Utilitary functions for dealing with TerraLib 5 and 4.x conversion.
te::rst::Grid * getGrid()
Returns the definition of the raster grid support.
Raster implementaton for TerraLib 4.x.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
const te::rst::Band * getBand(std::size_t i) const
Returns the raster i-th band.
Band implementation for TerraLib 4.x.
std::map< std::string, std::string > getInfo() const
It returns additional information about the raster.
A base class for values that can be retrieved from the data access module.
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.
~Raster()
Virtual destructor.
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
Raster()
Default constructor.