27 #include "../core/translator/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> 90 throw Exception(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
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).
~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::unique_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).
Band implementation for TerraLib 4.x.
Raster()
Default constructor.
static te::dt::TimeDuration dt(20, 30, 50, 11)
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.
struct TeRaster_t TeRaster
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.
Utilitary functions for dealing with TerraLib 5 and 4.x conversion.
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions.
Raster implementaton for TerraLib 4.x.
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.