| 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/functions/TeLayerFunctions.h File Reference

This file contains functions to manipulate layers. More...

`#include "../kernel/TeLayer.h"`
`#include "../kernel/TeVectorRemap.h"`
`#include "../kernel/TeTheme.h"`
`#include "../kernel/TeDatabase.h"`
`#include "../kernel/TeProgress.h"`
`#include "TeFunctionsDefines.h"`

Go to the source code of this file.

## Functions

template<class G >
bool | TeImportGeometriesToLayer (TeLayer *layer, G &geomSet)
template<typename GS >
GS * | TeCopyPortalGeometriesToLayer (TeDatabasePortal *portal, TeProjection *proj, TeLayer *layer, const string &tName="")
TLFUNCTIONS_DLL bool | TeCopyThemeToLayer (TeTheme *inTheme, TeLayer *outLayer, int selObj, map< string, string > *txtTable=0)
TLFUNCTIONS_DLL bool | TeCopyExternThemeToLayer (TeTheme *inTheme, TeLayer *outLayer, int selObj, map< string, string > *txtTable=0)
TLFUNCTIONS_DLL bool | TeCopyLayerToLayer (TeLayer *inLayer, TeLayer *outLayer, map< string, string > *txtTable=0)

## Detailed Description

This file contains functions to manipulate layers.

## Function Documentation

TLFUNCTIONS_DLL bool TeCopyExternThemeToLayer | ( | TeTheme * | inTheme,
|  | TeLayer * | outLayer,
|  | int | selObj,
|  | map< string, string > * | txtTable = `0`
| ) |  |

This function fills a layer with the objects selected in a theme

Parameters:

  inTheme | pointer to the source theme
  outLayer | pointer to the destination layer (already created)
  selObj | flag to indicate with objects of the theme should be copied.
  txtTable | pointer to a map<string,string> to return the old and new names of the text tables

TLFUNCTIONS_DLL bool TeCopyLayerToLayer | ( | TeLayer * | inLayer,
|  | TeLayer * | outLayer,
|  | map< string, string > * | txtTable = `0`
| ) |  |

This function copies a extern layer to another local

Parameters:

  inLayer | pointer to the source theme
  outLayer | pointer to the destination layer (already created)
  txtTable | pointer to a map<string,string> to return the old and new names of the text tables

template<typename GS >

GS* TeCopyPortalGeometriesToLayer | ( | TeDatabasePortal * | portal,
|  | TeProjection * | proj,
|  | TeLayer * | layer,
|  | const string & | tName = `""`
| ) |  |

Copy the geometries retrieved in a portal to layer

Parameters:

  portal | pointer to a portal that has executed a query for geometries
  proj | pointer to the projection associated to the geometries
  layer | pointer to the destination layer
  tname | optional parameter indicating the name of a table to store the geometries

TLFUNCTIONS_DLL bool TeCopyThemeToLayer | ( | TeTheme * | inTheme,
|  | TeLayer * | outLayer,
|  | int | selObj,
|  | map< string, string > * | txtTable = `0`
| ) |  |

This function fills a layer with the objects selected in a theme

Parameters:

  inTheme | pointer to the source theme
  outLayer | pointer to the destination layer (already created)
  selObj | flag to indicate with objects of the theme should be copied.
  txtTable | pointer to a map<string,string> to return the old and new names of the text tables

template<class G >

bool TeImportGeometriesToLayer | ( | TeLayer * | layer,
|  | G & | geomSet
| ) |  |

Imports a geometry set to a layer, creating an empty attribute table This function imports a geometry set to a layer. An attribute table is automatically created with only the object_id field. If geometries don�t have object ids a unique identification will be automatically generated

Parameters:

  layer | pointer to a layer previously created
  geomSet | the geometry set

Returns:
  TRUE or FALSE whether the geometry set was imported successfully

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines