| TerraLib 4.1

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

- File List
- File Members

Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/shapelib/TeImportDBF.cpp File Reference
`#include <string>`
`#include <iostream>`
`#include "TeDriverSHPDBF.h"`
`#include "TeTable.h"`
`#include "TeException.h"`
`#include "TeUtils.h"`
`#include "TeLayer.h"`
`#include "TeProgress.h"`
`#include "TeDatabase.h"`

## Functions

void | TeReadDBFIndexes (const string &dbfFileName, vector< string > &indexes, const string objectIdAttr="")
| Fills a vector with the values of choosen column named , to be used as object identifications.
bool | TeReadDBFAttributeList (const string &dbfFileName, TeAttributeList &attList)
| Decodify the attribute list definition from a dbf file into a TerraLib attribute list.
bool | TeImportDBFTable (const string &dbFileName, TeDatabase *db, TeLayer *layer, TeAttrTableType tableType, string objectIdAtt)
void | TeReadSHPAttributes (const string &dbfFileName, TeTable &table)
bool | TeReadDBFAttributes (const string &dbfFileName, TeTable &table, int nrecords, int rinitial, bool createAuto)
void | TeImportDBFIndexes (const string &shpFileName, vector< string > &indexVect, const string objectIdAttr)

## Function Documentation

void TeImportDBFIndexes | ( | const string & | shpFileName,
|  | vector< string > & | indexVect,
|  | const string | objectIdAttr
| ) |  |

void TeReadDBFIndexes | ( | const string & | dbfFileName,
|  | vector< string > & | indexes,
|  | const string | objectIdAttr = `""`
| ) |  |

Fills a vector with the values of choosen column named , to be used as object identifications.

Parameters:

  dbfFileName | DBF file name
  indexes | a vector that has the identification of the objects
  objectIdAttr | name of the attribute that has the identification of objects

Note:
  if no objectIdAttr is provided or there is no column with this name return an incremental sequence of numbers.

void TeReadSHPAttributes | ( | const string & | dbfFileName,
|  | TeTable & | table
| ) |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines