| 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
TeGeoDataDriver Class Reference

Abstract definition of a driver to geographical data files with vectorial representation. More...

`#include <TeGeoDataDriver.h>`

Inheritance diagram for TeGeoDataDriver:

List of all members.

## Public Member Functions

virtual | ~TeGeoDataDriver ()
| Destructor.
virtual std::string | getFileName ()=0
| Returns the complete access path associated to this driver.
virtual bool | isDataAccessible ()=0
| Returns true or false whether the data file is accessible.
virtual TeProjection * | getDataProjection ()=0
| Returns the spatial reference associated to the data as an instance of TeProjection.
virtual bool | getDataInfo (unsigned int &nObjects, TeBox &ext, TeGeomRep &repres)=0
| Loads the minimum metadata information about the data.
virtual bool | getDataAttributesList (TeAttributeList &attList)=0
| Loads the list of descriptive attributes of the objetcts represented in the file.
virtual bool | loadData (TeSTElementSet *dataSet)=0
| Loads the data into an TeSTElementSet structure in memory.
virtual bool | loadNextElement (TeSTElementSet *dataSet)
| Loads the next TeSTInstance and adds it to given TeSTElementSet - not loading all objects to memory.
virtual bool | createLayer (TeLayer *layer, const int &rep)
| Creates a new TerraLib layer from a concrete geo data driver.
virtual bool | createAttributeTable (TeTable &table)
| Creates a TerraLib Attribute Table from a concrete geo data driver.
virtual bool | addElement (TeSTInstance *e)
| Adds a TeSTInstance (TerraLib feature) to set of features handled by a concrete geo data driver.

## Static Public Member Functions

static TeGeoDataDriver * | DefaultObject ()

## Detailed Description

Abstract definition of a driver to geographical data files with vectorial representation.

## Constructor & Destructor Documentation

virtual TeGeoDataDriver::~TeGeoDataDriver | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

virtual bool TeGeoDataDriver::addElement | ( | TeSTInstance * | e | ) | `[inline, virtual]`

Adds a TeSTInstance (TerraLib feature) to set of features handled by a concrete geo data driver.

Parameters:

  feature | A TerraLib feature.

Returns:
  true if the feature was successfully added and false otherwise

Reimplemented in TeOGRDriver.

virtual bool TeGeoDataDriver::createAttributeTable | ( | TeTable & | table | ) | `[inline, virtual]`

Creates a TerraLib Attribute Table from a concrete geo data driver.

Parameters:

  table | TerraLib Table

Returns:
  true if the table was successfully created and false otherwise

Reimplemented in TeOGRDriver.

virtual bool TeGeoDataDriver::createLayer | ( | TeLayer * | layer,
|  | const int & | rep
| ) |  | `[inline, virtual]`

Creates a new TerraLib layer from a concrete geo data driver.

Parameters:

  layer | TerraLib Layer
  rep | TerraLib Representation: Polygon, Line, Point or Text

Returns:
  true if the layer was successfully created and false otherwise

Reimplemented in TeOGRDriver.

static TeGeoDataDriver* TeGeoDataDriver::DefaultObject | ( |  | ) | `[inline, static]`

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

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

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

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

Loads the minimum metadata information about the data.

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

virtual TeProjection* TeGeoDataDriver::getDataProjection | ( |  | ) | `[pure virtual]`

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

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

virtual std::string TeGeoDataDriver::getFileName | ( |  | ) | `[pure virtual]`

Returns the complete access path associated to this driver.

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

virtual bool TeGeoDataDriver::isDataAccessible | ( |  | ) | `[pure virtual]`

Returns true or false whether the data file is accessible.

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

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

Loads the data into an TeSTElementSet structure in memory.

Implemented in TeDXFDriver, TeOGRDriver, and TeShapefileDriver.

virtual bool TeGeoDataDriver::loadNextElement | ( | TeSTElementSet * | dataSet | ) | `[inline, virtual]`

Loads the next TeSTInstance and adds it to given TeSTElementSet - not loading all objects to memory.

Reimplemented in TeOGRDriver.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeGeoDataDriver.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines