27 #include "../core/translator/Translator.h" 34 #include <terralib4/kernel/TeDecoderDatabase.h> 35 #include <terralib4/kernel/TeRaster.h> 75 throw Exception(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
85 throw Exception(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
90 TeDecoderDatabase* decDb =
dynamic_cast<TeDecoderDatabase*
>(
m_pImpl->
m_raster->decoder());
94 decDb->getRasterBlock(decDbIdxUtf8, buffer);
104 throw Exception(
TE_TR(
"This method is not supported by TerraLib 4.x driver!"));
TETERRALIB4EXPORT std::string Convert2Utf8(const std::string &str)
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
A raster band description.
Impl(Raster *parent, TeRaster *iraster)
Band(Raster *parent, TeRaster *iraster, te::rst::BandProperty *bp, std::size_t idx)
te::rst::Raster * getRaster() const
Returns the associated raster.
#define TE_TR(message)
It marks a string in order to get translated.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
Band implementation for TerraLib 4.x.
An abstract class for raster data strucutures.
struct TeRaster_t TeRaster
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
std::size_t m_idx
The band index.
Utilitary functions for dealing with TerraLib 5 and 4.x conversion.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.
Raster implementaton for TerraLib 4.x.
~Band()
Virtual destructor.
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.