| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
TeGDALDecoder Class Reference

`#include <TeGDALDecoder.h>`

Inheritance diagram for TeGDALDecoder:

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:

  extension | The 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:

  index | block index
  buf | pointer 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:

  index | block index
  buf | pointer to a raster tile in memory
  bsize | block 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:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/gdal/TeGDALDecoder.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/gdal/TeGDALDecoder.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines