TerraLib 4.1
TeGDALDecoder Class Reference

#include <TeGDALDecoder.h>

Inheritance diagram for TeGDALDecoder:
TeDecoderVirtualMemory TeDecoder

List of all members.

Public Member Functions

 TeGDALDecoder ()
 TeGDALDecoder (const TeRasterParams &par)
 ~TeGDALDecoder ()
void init ()
 Initializes the internal structures.
bool clear ()
 Releases the internal structures.
bool setElement (int col, int lin, double val, int band=0)
 Writes an element.

Static Public Member Functions

static void initialize ()
 Reads an element.
static std::string getGDALDriverName (const std::string &extension)
 It returns the GDAL driver name associated to the given file extension.
static const std::vector
< TeGDALDriverInfo > & 
getGDALDrivers ()
static std::string getSupportedFilesFilter ()

Protected Member Functions

virtual bool getRasterBlock (const TeBlockIndex &index, void *buf)
 Gets the raster block with index identifier.
virtual bool putRasterBlock (const TeBlockIndex &index, void *buf, long bsize)
 Saves a raster tile from a virtual memory to permanent storage.

Protected Attributes

GDALDataset * _gdalDS
 < A pointer to GDAL Data Source.

Static Protected Attributes

static std::vector
< TeGDALDriverInfo
_gdalDrivers

Constructor & Destructor Documentation

TeGDALDecoder::TeGDALDecoder ( )
TeGDALDecoder::TeGDALDecoder ( const TeRasterParams par)
TeGDALDecoder::~TeGDALDecoder ( )

Member Function Documentation

bool TeGDALDecoder::clear ( ) [virtual]

Releases the internal structures.

Reimplemented from TeDecoderVirtualMemory.

std::string TeGDALDecoder::getGDALDriverName ( const std::string extension) [static]

It returns the GDAL driver name associated to the given file extension.

Parameters:
extensionThe raster file extension.
Returns:
The GDAL driver name, its identifier if succeeds and a empty string otherwise.
const std::vector< TeGDALDriverInfo > & TeGDALDecoder::getGDALDrivers ( ) [static]
bool TeGDALDecoder::getRasterBlock ( const TeBlockIndex index,
void *  buf 
) [protected, virtual]

Gets the raster block with index identifier.

Parameters:
indexblock index
bufpointer to a raster tile in memory

Implements TeDecoderVirtualMemory.

std::string TeGDALDecoder::getSupportedFilesFilter ( ) [static]
void TeGDALDecoder::init ( ) [virtual]

Initializes the internal structures.

Reimplemented from TeDecoderVirtualMemory.

void TeGDALDecoder::initialize ( ) [static]

Reads an element.

Initialize GDAL support

bool TeGDALDecoder::putRasterBlock ( const TeBlockIndex index,
void *  buf,
long  bsize 
) [protected, virtual]

Saves a raster tile from a virtual memory to permanent storage.

Parameters:
indexblock index
bufpointer to a raster tile in memory
bsizeblock size

Implements TeDecoderVirtualMemory.

bool TeGDALDecoder::setElement ( int  col,
int  lin,
double  val,
int  band = 0 
) [virtual]

Writes an element.

Reimplemented from TeDecoderVirtualMemory.


Member Data Documentation

std::vector< TeGDALDriverInfo > TeGDALDecoder::_gdalDrivers [static, protected]
GDALDataset* TeGDALDecoder::_gdalDS [protected]

< A pointer to GDAL Data Source.

Set of GDAL drivers information


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines