| TerraLib 4.1

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

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

Public Member Functions
TeGTM Class Reference

TeGTM .gtm files driver class. More...

`#include <TeGTM.h>`

List of all members.

## Public Member Functions

| TeGTM (FILE *file)
| Constructor.
| ~TeGTM ()
| Destructor.
void | readGTM ()
| GTM file reader.
void | writeGTM ()
| GTM file writer.
TeProjection * | getProjection ()
| TeProjection attribute Getter.
TeProjection * | setProjection (TeProjection *proj)
| TeProjection attribute Setter.
TeDatum | getDatum ()
| TeDatum attribute Getter.
short | setDatum (TeDatum datum)
| TeDatum attribute Setter.
std::string | getLayerNames (std::string fileName)
| Layer names Getter.
std::string | getDate (long date)
| Returns the date string calculated with the date(Number of seconds since 31-Dec-1989).
std::vector< TeLayer * > | importGTM (TeDatabase *db, std::string fileName)
| GTM importer, converts de GTM loaded in memory to TeDatabase.
void | exportGTM (TeTheme *theme, std::string fileName, FILE *file)
| GTM exporter, converts TeTheme into a GTM file.
void | waypointAttributeList (TeAttributeList &attList)
| Creates the attribute list used by the waypoints.
void | tracklogAttributeList (TeAttributeList &attList)
| Creates the attribute list used by the waypoints.
void | routeAttributeList (TeAttributeList &attList)
| Creates the attribute list used by the waypoints.
bool | importWaypoints (TeLayer *layer, string attrTableName, string objectIdAtt, int unsigned chunkSize)
| Waypoint importer.
bool | importTracklogs (TeLayer *layer, string attrTableName, string objectIdAtt, int unsigned chunkSize)
| Tracklog importer (TePOINTS)
bool | importTracklogs2 (TeLayer *layer, string attrTableName, string objectIdAtt, int unsigned chunkSize)
| Tracklog importer (TeLINES)
bool | importRoutes (TeLayer *layer, string attrTableName, string objectIdAtt, int unsigned chunkSize)
| Routes importer (TePOINTS)
bool | importRoutes2 (TeLayer *layer, string attrTableName, string objectIdAtt, int unsigned chunkSize)
| Routes importer (TeLINES)
int | importImages (TeLayer *layer)
| Images importer.
bool | createAttributeTable (TeLayer *layer, TeAttributeList attList, std::string attrTableName, std::string objectIdAtt, double oldPrec, int &linkCol)
| Create the attribute table used by the importGTM method.

## Detailed Description

TeGTM .gtm files driver class.

This class contains the implementation of common methods for TerraLib access .gtm files. For further information about the GTM file format access http://www.gpstm.com/download/GTM211_format.pdf

Author:
  Luiz Claudio Oliveira de Andrade <lcoandrade@gmail.com>

## Constructor & Destructor Documentation

TeGTM::TeGTM | ( | FILE * | file | ) |

Constructor.

TeGTM::~TeGTM | ( |  | ) |

Destructor.

## Member Function Documentation

bool TeGTM::createAttributeTable | ( | TeLayer * | layer,
|  | TeAttributeList | attList,
|  | std::string | attrTableName,
|  | std::string | objectIdAtt,
|  | double | oldPrec,
|  | int & | linkCol
| ) |  |

Create the attribute table used by the importGTM method.

Parameters:

  layer | - Layer created to receive the data
  attList | - List of columns attributes
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  oldPrec | - layer precision
  linkCol | - colum id used as link

void TeGTM::exportGTM | ( | TeTheme * | theme,
|  | std::string | fileName,
|  | FILE * | file
| ) |  |

GTM exporter, converts TeTheme into a GTM file.

Parameters:

  theme | - TeTheme to be exported

std::string TeGTM::getDate | ( | long | date | ) |

Returns the date string calculated with the date(Number of seconds since 31-Dec-1989).

TeDatum TeGTM::getDatum | ( |  | ) |

TeDatum attribute Getter.

std::string TeGTM::getLayerNames | ( | std::string | fileName | ) |

Layer names Getter.

TeProjection * TeGTM::getProjection | ( |  | ) |

TeProjection attribute Getter.

std::vector< TeLayer * > TeGTM::importGTM | ( | TeDatabase * | db,
|  | std::string | fileName
| ) |  |

GTM importer, converts de GTM loaded in memory to TeDatabase.

Parameters:

  db | - Database used
  fileName | - GTM file name

int TeGTM::importImages | ( | TeLayer * | layer | ) |

Images importer.

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

bool TeGTM::importRoutes | ( | TeLayer * | layer,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

Routes importer (TePOINTS)

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

bool TeGTM::importRoutes2 | ( | TeLayer * | layer,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

Routes importer (TeLINES)

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

bool TeGTM::importTracklogs | ( | TeLayer * | layer,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

Tracklog importer (TePOINTS)

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

bool TeGTM::importTracklogs2 | ( | TeLayer * | layer,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

Tracklog importer (TeLINES)

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

bool TeGTM::importWaypoints | ( | TeLayer * | layer,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

Waypoint importer.

Parameters:

  layer | - Layer created to receive the data
  attrTableName | - Name of the attribute table
  objectIdAtt | - colum used as link
  chunkSize | - Size used to save transactions(set to 100)

void TeGTM::readGTM | ( |  | ) |

GTM file reader.

void TeGTM::routeAttributeList | ( | TeAttributeList & | attList | ) |

Creates the attribute list used by the waypoints.

Parameters:

  attList | - List of columns attributes

short TeGTM::setDatum | ( | TeDatum | datum | ) |

TeDatum attribute Setter.

Parameters:

  datum. |

TeProjection * TeGTM::setProjection | ( | TeProjection * | proj | ) |

TeProjection attribute Setter.

Parameters:

  proj | - projection to be set.

void TeGTM::tracklogAttributeList | ( | TeAttributeList & | attList | ) |

Creates the attribute list used by the waypoints.

Parameters:

  attList | - List of columns attributes

void TeGTM::waypointAttributeList | ( | TeAttributeList & | attList | ) |

Creates the attribute list used by the waypoints.

Parameters:

  attList | - List of columns attributes

void TeGTM::writeGTM | ( |  | ) |

GTM file writer.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GTM/TeGTM.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GTM/TeGTM.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines