| 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/TeDriverSHPDBF.cpp File Reference
`#include <string>`
`#include <iostream>`
`#include <vector>`
`#include <list>`
`#include <map>`
`#include <assert.h>`
`#include <unistd.h>`
`#include "TeDriverSHPDBF.h"`
`#include "../../kernel/TeTable.h"`
`#include "../../kernel/TeException.h"`
`#include "../../kernel/TeUtils.h"`
`#include "../../kernel/TeGeometry.h"`
`#include "../../kernel/TeGeometryAlgorithms.h"`
`#include "../../kernel/TeLayer.h"`
`#include "../../kernel/TeProgress.h"`
`#include "../../kernel/TeDatabase.h"`
`#include "../../kernel/TeAsciiFile.h"`

## Functions

void | TeWriteDataProjectionToFile (TeProjection *projection, const std::string &fileName)
bool | TeGetSHPInfo (std::string shpfileName, unsigned int &nShapes, TeBox &box, TeGeomRep &rep)
bool | TeSTOSetBuildSHP (TeSTElementSet &stoset, const string &fileName)
| Builds the spatial object set from database according to the restrictions previously defined.
TeLayer * | TeImportShape (const string &shpFileName, TeDatabase *db, const string &layerName)
bool | TeImportShape (TeLayer *layer, const string &shpFileName, string attrTableName, string objectIdAtt, unsigned int chunkSize, const bool &useTransaction)
bool | TeImportShapeGeometry (TeLayer *layer, const string &shpFileName, string attrTableName, string objectIdAtt, int unsigned chunkSize)
DBFHandle | TeCreateDBFFile (const string &dbfFilename, TeAttributeList &attList)
bool | TeExportPolygonSet2SHP (const TePolygonSet &ps, const std::string &base_file_name)
bool | TeExportQuerierToShapefile (TeQuerier *querier, const std::string &base)
bool | TeExportShapefile (TeLayer *layer, const string &shpFileName, const string &tableName, const string &restriction)
bool | TeExportLayerToShapefile (TeLayer *layer, const string &baseName)
bool | TeExportThemeToShapefile (TeTheme *theme, TeSelectedObjects selOb, const std::string &baseName, const std::vector< std::string > attributes)
void | TeRemoveNonAsciiChar (std::string &text)
void | TeDBFRowDecode (DBFHandle &hDBF, int nr, TeTableRow &row)
| Decodify a row of a DBF into a TeTableRow structure.
bool | TeDecodeShape (SHPObject *psShape, TeMultiGeometry &geomestries, string &objectId)
| Decodify a ShapeObject into a TerraLib multigeometry set.
void | TeSHPPointDecode (SHPObject *psShape, TePointSet &points, string &objid)
| Decodify a ShapeObject into a TerraLib point set.
void | TeSHPPolyLineDecode (SHPObject *psShape, TeLineSet &lines, string &objid)
| Decodify a ShapeObject into a TerraLib line set.
void | TeSHPPolygonDecode (SHPObject *psShape, TePolygonSet &polys, string &objid)
| Decodify a ShapeObject into a TerraLib polygon set.
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

bool TeExportPolygonSet2SHP | ( | const TePolygonSet & | ps,
|  | const std::string & | base_file_name
| ) |  |

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

bool TeImportShapeGeometry | ( | TeLayer * | layer,
|  | const string & | shpFileName,
|  | string | attrTableName,
|  | string | objectIdAtt,
|  | int unsigned | chunkSize
| ) |  |

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
| ) |  |

void TeRemoveNonAsciiChar | ( | std::string & | text | ) |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines