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 <terralib4/kernel/TeRaster.h> 
   46     Impl(TeRaster* iraster);
 
   79   throw Exception(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
 
   90   throw Exception(
TE_TR(
"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(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
 
int getBandDataType(std::size_t i) const 
Returns the data type in a particular band (or dimension). 
 
Band implementation for TerraLib 4.x. 
 
~Raster()
Virtual destructor. 
 
#define TE_TR(message)
It marks a string in order to get translated. 
 
te::dt::AbstractData * clone() const 
It returns a clone of this object. 
 
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. 
 
const te::rst::Band & operator[](std::size_t i) const 
Access band in i position. 
 
Grid * m_grid
The spatial support for raster data. 
 
AccessPolicy
Supported data access policies (can be used as bitfield). 
 
Raster()
Default constructor. 
 
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. 
 
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster. 
 
const te::rst::Band * getBand(std::size_t i) const 
Returns the raster i-th band. 
 
boost::ptr_vector< Band > m_bands
 
te::rst::Grid * getGrid()
Returns the definition of the raster grid support. 
 
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions. 
 
A rectified grid is the spatial support for raster data. 
 
Utilitary functions for dealing with TerraLib 5 and 4.x conversion. 
 
Raster implementaton for TerraLib 4.x. 
 
std::map< std::string, std::string > getInfo() const 
It returns additional information about the raster.