| TerraLib 4.1

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

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

Public Member Functions | Protected Attributes
TeOGRDriver Class Reference

`#include <TeOGRDriver.h>`

Inheritance diagram for TeOGRDriver:

List of all members.

## Public Member Functions

| TeOGRDriver (const std::string &fileName, const bool &writing=false, const std::string &OGRDriverName="GML")
| ~TeOGRDriver ()
virtual std::string | getFileName ()
| Returns the complete access path associated to this driver.
virtual bool | isDataAccessible ()
| Returns true or false whether the data file is accessible.
virtual TeProjection * | getDataProjection ()
| Returns the spatial reference associated to the data as an instance of TeProjection.
virtual bool | getDataInfo (unsigned int &nObjects, TeBox &ext, TeGeomRep &repres)
| Loads the minimum metadata information about the data.
virtual bool | getDataAttributesList (TeAttributeList &attList)
| Loads the list of descriptive attributes of the objetcts represented in the file.
virtual bool | loadData (TeSTElementSet *dataSet)
| Loads the data into an TeSTElementSet structure in memory.
virtual bool | loadNextElement (TeSTElementSet *dataSet)
| Gets the next OGR Element.
virtual void | getDriversNames (std::vector< std::string > &dnames)
| Gets the names of registered OGR drivers.
virtual bool | createLayer (TeLayer *layer, const int &rep=255)
| Create a new layer to OGR format.
virtual bool | createAttributeTable (TeTable &table)
| Create a new table to OGR Layer.
virtual bool | addElement (TeSTInstance *e)
| Sets geographic elements to ogr layer.

## Protected Attributes

OGRDataSource * | ogrDS_
| A pointer to OGR Data Source.
OGRLayer * | ogrLayer_
| A pointer to first OGR Layer on DataSource. // TODO: revision is necessary.
std::string | fileName_
| Complete access path.
TeBox | box_
| Data set box.
unsigned int | numObjs_
| Number of features in data set.
TeGeomRep | geomType_
| Geometric representation of data set.

## Constructor & Destructor Documentation

TeOGRDriver::TeOGRDriver | ( | const std::string & | fileName,
|  | const bool & | writing = `false`,
|  | const std::string & | OGRDriverName = `"GML"`
| ) |  |

TeOGRDriver::~TeOGRDriver | ( |  | ) |

## Member Function Documentation

bool TeOGRDriver::addElement | ( | TeSTInstance * | e | ) | `[virtual]`

Sets geographic elements to ogr layer.

Reimplemented from TeGeoDataDriver.

bool TeOGRDriver::createAttributeTable | ( | TeTable & | table | ) | `[virtual]`

Create a new table to OGR Layer.

Reimplemented from TeGeoDataDriver.

bool TeOGRDriver::createLayer | ( | TeLayer * | layer,
|  | const int & | rep = `255`
| ) |  | `[virtual]`

Create a new layer to OGR format.

Reimplemented from TeGeoDataDriver.

bool TeOGRDriver::getDataAttributesList | ( | TeAttributeList & | attList | ) | `[virtual]`

Loads the list of descriptive attributes of the objetcts represented in the file.

Implements TeGeoDataDriver.

bool TeOGRDriver::getDataInfo | ( | unsigned int & | nObjects,
|  | TeBox & | ext,
|  | TeGeomRep & | repres
| ) |  | `[virtual]`

Loads the minimum metadata information about the data.

Implements TeGeoDataDriver.

TeProjection * TeOGRDriver::getDataProjection | ( |  | ) | `[virtual]`

Returns the spatial reference associated to the data as an instance of TeProjection.

Implements TeGeoDataDriver.

void TeOGRDriver::getDriversNames | ( | std::vector< std::string > & | dnames | ) | `[virtual]`

Gets the names of registered OGR drivers.

std::string TeOGRDriver::getFileName | ( |  | ) | `[virtual]`

Returns the complete access path associated to this driver.

Implements TeGeoDataDriver.

bool TeOGRDriver::isDataAccessible | ( |  | ) | `[virtual]`

Returns true or false whether the data file is accessible.

Implements TeGeoDataDriver.

bool TeOGRDriver::loadData | ( | TeSTElementSet * | dataSet | ) | `[virtual]`

Loads the data into an TeSTElementSet structure in memory.

Implements TeGeoDataDriver.

bool TeOGRDriver::loadNextElement | ( | TeSTElementSet * | dataSet | ) | `[virtual]`

Gets the next OGR Element.

Reimplemented from TeGeoDataDriver.

## Member Data Documentation

TeBox TeOGRDriver::box_`[protected]`

Data set box.

std::string TeOGRDriver::fileName_`[protected]`

Complete access path.

TeGeomRep TeOGRDriver::geomType_`[protected]`

Geometric representation of data set.

unsigned int TeOGRDriver::numObjs_`[protected]`

Number of features in data set.

OGRDataSource* TeOGRDriver::ogrDS_`[protected]`

A pointer to OGR Data Source.

OGRLayer* TeOGRDriver::ogrLayer_`[protected]`

A pointer to first OGR Layer on DataSource. // TODO: revision is necessary.

The documentation for this class was generated from the following files:

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines