| TerraLib 4.1

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

Functions
SPRING GEO/TAB format
Geographical data formats

## Functions

TLFUNCTIONS_DLL TeLayer * | TeImportGEO (const string &geoFileName, TeDatabase *db, const string &layerName="")
TLFUNCTIONS_DLL bool | TeImportGEO (TeLayer *layer, const string &geoFileName, string attrTableName="", unsigned int chunkSize=60)
TLFUNCTIONS_DLL void | TeReadGeoAttributeList (const string &geoFileName, TeAttributeList &attList, string &labelName)
TLFUNCTIONS_DLL bool | TeExportSPR (TeLayer *layer, const string &sprFileName, const string &tableName, TeSpringModels cat, const string &name)
TLFUNCTIONS_DLL bool | TeExportThemeToSPRING (TeTheme *theme, TeSpringModels cat, const string &name, TeSelectedObjects selOb=TeAll, const string &baseName="")
TLFUNCTIONS_DLL bool | TeExportQuerierToSPRING (TeQuerier *querier, const std::string &base, TeSpringModels cat, const string &name, TeProjection *proj=0)

## Detailed Description

Functions related to SPRING format

## Function Documentation

TLFUNCTIONS_DLL bool TeExportQuerierToSPRING | ( | TeQuerier * | querier,
|  | const std::string & | base,
|  | TeSpringModels | cat,
|  | const string & | name,
|  | TeProjection * | proj = `0`
| ) |  |

Exports a querier to a SCII Spring file

Parameters:

  querier | pointer to a valid querier
  baseName | name of the output SPRING file
  cat | Spring's category
  name | name of the column that has the object identifier or class indication
  proj | projection of the data
  objname | name of object category

Returns:
  TRUE if the data was successfully exported and FALSE otherwise

TLFUNCTIONS_DLL bool TeExportSPR | ( | TeLayer * | layer,
|  | const string & | sprFileName,
|  | const string & | tableName,
|  | TeSpringModels | cat,
|  | const string & | name
| ) |  |

Exports a layer in a TerraLib database to a file in ASCII SPRING format

Parameters:

  layer | pointer to the layer
  sprFileName | name of the output SPRING file
  tableName | name of the attribute table to be exported
  cat | Spring's category
  name | name of the column that has the object identifier or class indication

Returns:
  TRUE if the data was successfully exported and FALSE otherwise

Note:
  Parameter 'name' is the Object name if exporting to categories Cadastral or Network . Is the name of the column that has the quote value if Numeric category or the name of the column that has the class information if category Thematic.

TLFUNCTIONS_DLL bool TeExportThemeToSPRING | ( | TeTheme * | theme,
|  | TeSpringModels | cat,
|  | const string & | name,
|  | TeSelectedObjects | selOb = `TeAll`,
|  | const string & | baseName = `""`
| ) |  |

Exports a theme in a TerraLib database to a file in MID/MIF format

Parameters:

  theme | pointer to the theme
  cat | Spring's category
  name | name of the column that has the object identifier or class indication
  selOb | selection of the objects that should be exported
  baseName | name of the output MID/MIF file

Returns:
  TRUE if the data was successfully exported and FALSE otherwise

TLFUNCTIONS_DLL bool TeImportGEO | ( | TeLayer * | layer,
|  | const string & | geoFileName,
|  | string | attrTableName = `""`,
|  | unsigned int | chunkSize = `60`
| ) |  |

Imports a GEO/TAB data to a layer TerraLib

Parameters:

  layer | pointer to a layer
  geoFileName | GEO/TAB file name
  attrTableName | the name that the attribute table will be saved
  chunkSize | the number of objects in memory before save them in the layer

TLFUNCTIONS_DLL TeLayer* TeImportGEO | ( | const string & | geoFileName,
|  | TeDatabase * | db,
|  | const string & | layerName = `""`
| ) |  |

Imports a geo data in SPRING geo/tab format to a TerraLib database

Parameters:

  geoFileName | GEO/TAB file name
  db | pointer to a TerraLib database
  layerName | name of the layer that will contain the data (optional)

Returns:
  a pointer to created layer if the data was imported successfully and 0 otherwise

Examples:
  importGeoTab.cpp.

TLFUNCTIONS_DLL void TeReadGeoAttributeList | ( | const string & | geoFileName,
|  | TeAttributeList & | attList,
|  | string & | labelName
| ) |  |

Reads the list of attributes of GEO/TAB file

Parameters:

  geoFileName | DBF input file name
  attList | to return the DBF list of attributes
  labelName | to return the name of the column that is the link with geometries

Returns:
  true if the list of attributes were was successfully read and false otherwise

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines