| TerraLib 4.1

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

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

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
TeExternalTheme Class Reference

A class that implements the external theme concept. More...

`#include <TeExternalTheme.h>`

Inheritance diagram for TeExternalTheme:

List of all members.

## Public Member Functions

| TeExternalTheme (TeDatabase *sourceDb, TeTheme *remoteTheme, const int &viewId, const string &name="")
| Constructor.
virtual | ~TeExternalTheme ()
| Destructor.
TeExternalTheme & | operator= (TeExternalTheme &rhs)
| Operator =.
virtual bool | buildGrouping (const TeGrouping &g, TeSelectedObjects selectedObjects=TeAll, vector< double > *dValuesVec=0)
| Save the grouping parameters in memory when there is no chronon.
virtual bool | buildGrouping (const TeGrouping &g, TeChronon chr, vector< map< string, string > > &mapObjValVec)
| Save the grouping parameters in memory when there is chronon.
virtual bool | saveGrouping (TeSelectedObjects selectedObjects=TeAll)
| Build the grouping and associate each object to its group in the collection table.
virtual bool | saveLegendInCollection (TeSelectedObjects selectedObjects=TeAll, std::string objectId="")
| Save the theme grouping legends in the collection table.
virtual bool | saveLegendInCollection (TeDatabase *db, TeSelectedObjects selectedObjects=TeAll, std::string objectId="")
| Save the theme grouping legends in the collection table.
virtual void | setLegendsForObjects ()
| ! Set the legend id for each object of the theme.
virtual bool | generateLabelPositions (const std::string &objectId="")
| Generates a optimized position (x,y) in the spatial extention of each object to position label or graphs.
virtual bool | deleteGrouping ()
| Delete grouping.
virtual void | createRasterVisual (TeRaster *rst=0)
| Creates an appropriate visual presentation to the raster of the theme.
virtual bool | hasObjectsWithoutGeometries (TeGeomRep geomRep)
| Verifies if there are objects without geometries of a specific geometry representation.
virtual bool | removeObjectsWithoutGeometries (TeGeomRep geomRep)
| Removes the objects without geometries of a specific geometry representation.
virtual bool | saveMetadata (TeDatabase *db)
| Save the theme metadata in database.
bool | getRemoteThemeInfo (int &remoteThemeId, int &databaseId)
| Retrieves remote theme information from the database.
void | setRemoteDbId (const int &removeDbId)
| Sets the remote the id for this external theme.
Remote Theme Accessor Methods
Methods related to the remote theme reference.
virtual TeViewNode * | clone ()
| Clones the object.
virtual TeTheme * | getRemoteTheme () const
virtual void | setRemoteTheme (TeTheme *theme)
virtual TeDatabase * | getSourceDatabase ()
virtual void | setSourceDatabase (TeDatabase *srcDB)
virtual string | getRemoteThemeName ()
Object status containers
Methods to handle object status containers
virtual void | loadObjectLegendMap ()
virtual int | getGridStatus (const int uniqueId, const std::string objectId)
virtual int | getObjectStatus (const std::string objectId)
virtual bool | setObjectLegendStatusMap (const std::string objId, const int status)
virtual bool | setObjectGridStatusMap (const std::string objId, const int uniqueId, const int status)
Layer accessor methods
Methods related to the layer that gives origin to this theme.
virtual int | layerId ()
| Returns the identification of the source layer.
virtual void | layerId (int i)
| Sets the identification of the source layer.
virtual void | layer (TeLayer *layer)
| Sets the layer that is the source of objects of the theme.
virtual TeLayer * | layer ()
| Returns a pointer to the layer from which the theme get its objects.
virtual TeProjection * | getThemeProjection ()
| Returns a pointer to the projection of the remote layer.
Methods related to the restrictions over the theme used to generate this theme
virtual bool | hasRestriction ()
| Verifies if this theme has any kind of restrictions.
virtual bool | hasAttrRest ()
| Returns if there is an attribute restriction.
virtual bool | hasTemporalRest ()
| Returns TRUE if there is a temporal restriction defined in the theme.
virtual bool | hasSpatialRest ()
| Returns TRUE if this theme has a spatial restriction.
virtual string | sqlWhereRestrictions (TeRepresentation *rep=0)
| Returns the clause WHERE derived from the combination of all restricitions (spatial, attribute and temporal).
Collection
Methods related to the materialization in the database of the theme as a collection of objects
virtual void | loadTablesJoin (const string &geomTable="")
| Fills the sqlGridJoin_ and sqlGridFrom_ statements according to the status of the database.
virtual string | sqlGridJoin ()
| Returns a SQL JOIN statement to get all the attributes of the theme objects, the attributes of the collection table, and the attributes of the extended collection table.
virtual string | sqlGridFrom (const string &geomTable="")
| Returns a FROM clause of a SQL statement to get attributes of the theme objects, the attributes of the collection table, and the attributes of the extended collection table .
virtual bool | save ()
| Save the the theme parameters in the database.
virtual bool | save (const bool &copyExternalCollection)
virtual bool | save (TeDatabase *db, const bool &copyExternalCollection=true)
| Save the the theme parameters in the database.
virtual bool | createCollectionAuxTable ()
| Create the auxiliar collection table used to represent objects with multiple versions in time.
virtual bool | populateCollectionAux (std::string objectId="")
| Populate the auxiliar collection table used to represent objects with multiple versions in time.
Attribute Tables
A theme can use one or more attribute tables of the layer that gives its data. These methods are related to the manipulation of these tables.
virtual bool | addThemeTable (TeTable &table)
| Add a new attribute table to a theme.
virtual void | addThemeTable (string tableName)
| Add a new attribute table to a theme.
virtual bool | isThemeTable (int tableId)
| Verify if an attribute table is part of a theme.
virtual bool | isThemeTable (string tableName)
| Verify if an attribute table is part of a theme.
virtual TeAttrTableVector & | attrTables ()
| Returns the list of attribute tables used by this theme.
virtual bool | setAttTables (TeAttrTableVector &attrs)
| Sets the entire list of attribute tables used by this theme.
virtual bool | getAttTables (TeAttrTableVector &attrs, TeAttrTableType attType=TeAllAttrTypes)
| Returns a vector of attribute tables, of a specific type, used by this theme.
virtual bool | getTable (TeTable &table, const string tableName)
| Returns a representation of an attribute table given name.
virtual void | clearAttTableVector ()
| Clears the list of attribute tables used by this theme.
virtual bool | getTemporalTable (TeTable &table)
| Returns the temporal attribute table of the theme (TeEvent or TeFixedGeomDynAttr).
virtual bool | removeThemeTable (unsigned int index)
| Removes an attribute table from the list of tables of a theme.
virtual string | getTableName (const string &attrName)
| Returns the the name of an attribute table that contains a given attribute.
virtual string | getAttribute (unsigned int index)
| Returns the name of the index-th attribute resulting of the join of all attribute tables associated to the theme tables.
virtual bool | loadThemeTables ()
| Loads the theme tables in the database.
virtual TeAttributeList | sqlAttList ()
| Returns the list of attributes of theme tables.
virtual void | clearAttList ()
| Clears the list of attributes associated to the theme tables.
virtual TeAttributeList | sqlNumAttList ()
| Returns the list of numerical attributes of the theme tables.
virtual void | clearNumAttList ()
| Clears the list of numerical attributes associated to the theme tables.
virtual string | sqlJoin ()
| ! Returns a SQL JOIN statement to reach to all attribute tables used by this theme.
virtual string | sqlFrom ()
| Returns a SQL FROM CLAUSE that gives access to all attribute tables used by this theme.
virtual vector< string > & | aliasVector ()
| Returns the alias vector of the names of the theme tables.
virtual void | loadAliasVector ()
| Fills aliasVector_.
virtual void | loadAttrLists ()
| Refresh list of attributes of all the theme tables.
Locate geometries
Returns the geometry(ies) of the theme given coordinate
virtual bool | locatePolygon (TeCoord2D &pt, TePolygon &polygon, const double &tol=0.0)
virtual bool | locatePolygonSet (TeCoord2D &pt, double tol, TePolygonSet &polygons)
virtual bool | locateLine (TeCoord2D &pt, TeLine2D &line, const double &tol=0.0)
virtual bool | locatePoint (TeCoord2D &pt, TePoint &point, const double &tol=0.0)
virtual bool | locateCell (TeCoord2D &pt, TeCell &c, const double &tol=0.0)

## Static Public Member Functions

static int | createExternalThemeTable (TeDatabase *sourceDB)
| Creates a table to store information on how to connect to others databases and get remote theme.

## Protected Member Functions

virtual bool | populateCollection (std::string objectId="", const bool &sincronize=true)
| Fill the sqlJoin_ and sqlFrom_ .
virtual void | createLegendMapId (std::map< int, int > &mapIdLegend)
| Populate map with relationateds ids from local theme and remote theme.
virtual bool | copyRemoteCollection (std::map< int, int > &mapIdLegend)
| Copy the respective collection table from remoteTheme to localTheme.
virtual bool | loadMetadata (TeDatabase *db)
| Load the external theme metadata from database.
virtual bool | eraseMetadata (TeDatabase *db)
| Erase the theme metadata in database.
virtual bool | beforeCopyThemeTo (TeAbstractTheme *absThemeCopy, TeDatabase *outputDatabase)
| Should be reimplemented to set all the parameters and pre-requisites necessaries to copy a theme to the given database. This method will be called before the theme is saved in the database.

## Protected Attributes

TeTheme * | remoteTheme_
| A pointer to a theme in a remote database.
TeDatabase * | sourceDB_
int | remoteDbId_

## Detailed Description

A class that implements the external theme concept.

A external theme is a theme stored in a remote TerraLib database. Some information about the external theme is stored in the local database, but its geometries and attributes are stored in the remote database.

See also:
  TeTheme

## Constructor & Destructor Documentation

TeExternalTheme::TeExternalTheme | ( | TeDatabase * | sourceDb,
|  | TeTheme * | remoteTheme,
|  | const int & | viewId,
|  | const string & | name = `""`
| ) |  |

Constructor.

TeExternalTheme::~TeExternalTheme | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

bool TeExternalTheme::addThemeTable | ( | TeTable & | table | ) | `[virtual]`

Add a new attribute table to a theme.

Reimplemented from TeTheme.

void TeExternalTheme::addThemeTable | ( | string | tableName | ) | `[virtual]`

Add a new attribute table to a theme.

Reimplemented from TeTheme.

vector< string > & TeExternalTheme::aliasVector | ( |  | ) | `[virtual]`

Returns the alias vector of the names of the theme tables.

Reimplemented from TeTheme.

TeAttrTableVector & TeExternalTheme::attrTables | ( |  | ) | `[virtual]`

Returns the list of attribute tables used by this theme.

Reimplemented from TeTheme.

bool TeExternalTheme::beforeCopyThemeTo | ( | TeAbstractTheme * | absThemeCopy,
|  | TeDatabase * | outputDatabase
| ) |  | `[protected, virtual]`

Should be reimplemented to set all the parameters and pre-requisites necessaries to copy a theme to the given database. This method will be called before the theme is saved in the database.

Reimplemented from TeTheme.

bool TeExternalTheme::buildGrouping | ( | const TeGrouping & | g,
|  | TeChronon | chr,
|  | vector< map< string, string > > & | mapObjValVec
| ) |  | `[virtual]`

Save the grouping parameters in memory when there is chronon.

Reimplemented from TeTheme.

bool TeExternalTheme::buildGrouping | ( | const TeGrouping & | g,
|  | TeSelectedObjects | selectedObjects = `TeAll`,
|  | vector< double > * | dValuesVec = `0`
| ) |  | `[virtual]`

Save the grouping parameters in memory when there is no chronon.

Reimplemented from TeTheme.

void TeExternalTheme::clearAttList | ( |  | ) | `[virtual]`

Clears the list of attributes associated to the theme tables.

Reimplemented from TeTheme.

void TeExternalTheme::clearAttTableVector | ( |  | ) | `[virtual]`

Clears the list of attribute tables used by this theme.

Reimplemented from TeTheme.

void TeExternalTheme::clearNumAttList | ( |  | ) | `[virtual]`

Clears the list of numerical attributes associated to the theme tables.

Reimplemented from TeTheme.

TeViewNode * TeExternalTheme::clone | ( |  | ) | `[virtual]`

Clones the object.

Reimplemented from TeTheme.

bool TeExternalTheme::copyRemoteCollection | ( | std::map< int, int > & | mapIdLegend | ) | `[protected, virtual]`

Copy the respective collection table from remoteTheme to localTheme.

bool TeExternalTheme::createCollectionAuxTable | ( |  | ) | `[virtual]`

Create the auxiliar collection table used to represent objects with multiple versions in time.

Note:
  In a Remote Theme this method creates a local auxiliary collection table.

Reimplemented from TeTheme.

int TeExternalTheme::createExternalThemeTable | ( | TeDatabase * | sourceDB | ) | `[static]`

Creates a table to store information on how to connect to others databases and get remote theme.

Parameters:

  sourceDB | A connection to a TerraLib database that stores information about others databases that can be used by remote themes. (Input)

Returns:
  Returns 1 if the table was created, -1 if it already exists and 0 on error.

void TeExternalTheme::createLegendMapId | ( | std::map< int, int > & | mapIdLegend | ) | `[protected, virtual]`

Populate map with relationateds ids from local theme and remote theme.

void TeExternalTheme::createRasterVisual | ( | TeRaster * | rst = `0` | ) | `[virtual]`

Creates an appropriate visual presentation to the raster of the theme.

Reimplemented from TeTheme.

bool TeExternalTheme::deleteGrouping | ( |  | ) | `[virtual]`

Delete grouping.

Reimplemented from TeTheme.

bool TeExternalTheme::eraseMetadata | ( | TeDatabase * | db | ) | `[protected, virtual]`

Erase the theme metadata in database.

Reimplemented from TeTheme.

bool TeExternalTheme::generateLabelPositions | ( | const std::string & | objectId = `""` | ) | `[virtual]`

Generates a optimized position (x,y) in the spatial extention of each object to position label or graphs.

Reimplemented from TeTheme.

string TeExternalTheme::getAttribute | ( | unsigned int | index | ) | `[virtual]`

Returns the name of the index-th attribute resulting of the join of all attribute tables associated to the theme tables.

Reimplemented from TeTheme.

bool TeExternalTheme::getAttTables | ( | TeAttrTableVector & | attrs,
|  | TeAttrTableType | attType = `TeAllAttrTypes`
| ) |  | `[virtual]`

Returns a vector of attribute tables, of a specific type, used by this theme.

Reimplemented from TeTheme.

int TeExternalTheme::getGridStatus | ( | const int | uniqueId,
|  | const std::string | objectId
| ) |  | `[virtual]`

int TeExternalTheme::getObjectStatus | ( | const std::string | objectId | ) | `[virtual]`

TeTheme * TeExternalTheme::getRemoteTheme | ( |  | ) | const`[virtual]`

bool TeExternalTheme::getRemoteThemeInfo | ( | int & | remoteThemeId,
|  | int & | databaseId
| ) |  |

Retrieves remote theme information from the database.

string TeExternalTheme::getRemoteThemeName | ( |  | ) | `[virtual]`

TeDatabase * TeExternalTheme::getSourceDatabase | ( |  | ) | `[virtual]`

bool TeExternalTheme::getTable | ( | TeTable & | table,
|  | const string | tableName
| ) |  | `[virtual]`

Returns a representation of an attribute table given name.

Reimplemented from TeTheme.

string TeExternalTheme::getTableName | ( | const string & | attrName | ) | `[virtual]`

Returns the the name of an attribute table that contains a given attribute.

Reimplemented from TeTheme.

bool TeExternalTheme::getTemporalTable | ( | TeTable & | table | ) | `[virtual]`

Returns the temporal attribute table of the theme (TeEvent or TeFixedGeomDynAttr).

Note:
  A theme supports only one temporal attribute table.

Reimplemented from TeTheme.

TeProjection * TeExternalTheme::getThemeProjection | ( |  | ) | `[virtual]`

Returns a pointer to the projection of the remote layer.

Reimplemented from TeTheme.

bool TeExternalTheme::hasAttrRest | ( |  | ) | `[virtual]`

Returns if there is an attribute restriction.

Note:
  In a Remote Theme this method always returns FALSE.

Reimplemented from TeAbstractTheme.

bool TeExternalTheme::hasObjectsWithoutGeometries | ( | TeGeomRep | geomRep | ) | `[virtual]`

Verifies if there are objects without geometries of a specific geometry representation.

Reimplemented from TeTheme.

bool TeExternalTheme::hasRestriction | ( |  | ) | `[virtual]`

Verifies if this theme has any kind of restrictions.

Note:
  In a Remote Theme this method always returns FALSE.

Reimplemented from TeAbstractTheme.

bool TeExternalTheme::hasSpatialRest | ( |  | ) | `[virtual]`

Returns TRUE if this theme has a spatial restriction.

Note:
  In a Remote Theme this method always returns FALSE.

Reimplemented from TeAbstractTheme.

bool TeExternalTheme::hasTemporalRest | ( |  | ) | `[virtual]`

Returns TRUE if there is a temporal restriction defined in the theme.

Note:
  In a Remote Theme this method always returns FALSE.

Reimplemented from TeAbstractTheme.

bool TeExternalTheme::isThemeTable | ( | int | tableId | ) | `[virtual]`

Verify if an attribute table is part of a theme.

Reimplemented from TeTheme.

bool TeExternalTheme::isThemeTable | ( | string | tableName | ) | `[virtual]`

Verify if an attribute table is part of a theme.

Reimplemented from TeTheme.

TeLayer * TeExternalTheme::layer | ( |  | ) | `[virtual]`

Returns a pointer to the layer from which the theme get its objects.

Note:
  In a Remote Theme this method returns a NULL pointer.

Reimplemented from TeTheme.

void TeExternalTheme::layer | ( | TeLayer * | layer | ) | `[virtual]`

Sets the layer that is the source of objects of the theme.

Parameters:

  layer | A pointer to a TeLayer. (Input)

Reimplemented from TeTheme.

int TeExternalTheme::layerId | ( |  | ) | `[virtual]`

Returns the identification of the source layer.

Note:
  In a Remote Theme this will be always -1.

Reimplemented from TeTheme.

void TeExternalTheme::layerId | ( | int | i | ) | `[virtual]`

Sets the identification of the source layer.

Parameters:

  i | Layer identification value that will be used to set the source layer. (Input)

Note:
  In a Remote Theme this method does nothing.

Reimplemented from TeTheme.

void TeExternalTheme::loadAliasVector | ( |  | ) | `[virtual]`

Fills aliasVector_.

Reimplemented from TeTheme.

void TeExternalTheme::loadAttrLists | ( |  | ) | `[virtual]`

Refresh list of attributes of all the theme tables.

Note:
  All attributes are stored into sqlAttList_ and numeric attributes are stored into sqlNumAttList_.

Reimplemented from TeTheme.

bool TeExternalTheme::loadMetadata | ( | TeDatabase * | db | ) | `[protected, virtual]`

Load the external theme metadata from database.

Reimplemented from TeTheme.

void TeExternalTheme::loadObjectLegendMap | ( |  | ) | `[virtual]`

void TeExternalTheme::loadTablesJoin | ( | const string & | geomTable = `""` | ) | `[virtual]`

Fills the sqlGridJoin_ and sqlGridFrom_ statements according to the status of the database.

Note:
  In a Remote Theme this method does nothing.

Reimplemented from TeTheme.

bool TeExternalTheme::loadThemeTables | ( |  | ) | `[virtual]`

Loads the theme tables in the database.

Reimplemented from TeTheme.

bool TeExternalTheme::locateCell | ( | TeCoord2D & | pt,
|  | TeCell & | c,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Reimplemented from TeTheme.

bool TeExternalTheme::locateLine | ( | TeCoord2D & | pt,
|  | TeLine2D & | line,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Reimplemented from TeTheme.

bool TeExternalTheme::locatePoint | ( | TeCoord2D & | pt,
|  | TePoint & | point,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Reimplemented from TeTheme.

bool TeExternalTheme::locatePolygon | ( | TeCoord2D & | pt,
|  | TePolygon & | polygon,
|  | const double & | tol = `0.0`
| ) |  | `[virtual]`

Reimplemented from TeTheme.

bool TeExternalTheme::locatePolygonSet | ( | TeCoord2D & | pt,
|  | double | tol,
|  | TePolygonSet & | polygons
| ) |  | `[virtual]`

Reimplemented from TeTheme.

TeExternalTheme & TeExternalTheme::operator= | ( | TeExternalTheme & | rhs | ) |

Operator =.

bool TeExternalTheme::populateCollection | ( | std::string | objectId = `""`,
|  | const bool & | sincronize = `true`
| ) |  | `[protected, virtual]`

Fill the sqlJoin_ and sqlFrom_ .

Populate the collection table based in the theme restrictions.

Reimplemented from TeTheme.

bool TeExternalTheme::populateCollectionAux | ( | std::string | objectId = `""` | ) | `[virtual]`

Populate the auxiliar collection table used to represent objects with multiple versions in time.

Note:
  In a Remote Theme this method populates the local auxiliary collection.

Reimplemented from TeTheme.

bool TeExternalTheme::removeObjectsWithoutGeometries | ( | TeGeomRep | geomRep | ) | `[virtual]`

Removes the objects without geometries of a specific geometry representation.

Reimplemented from TeTheme.

bool TeExternalTheme::removeThemeTable | ( | unsigned int | index | ) | `[virtual]`

Removes an attribute table from the list of tables of a theme.

Reimplemented from TeTheme.

bool TeExternalTheme::save | ( |  | ) | `[virtual]`

Save the the theme parameters in the database.

Reimplemented from TeTheme.

bool TeExternalTheme::save | ( | const bool & | copyExternalCollection | ) | `[virtual]`

bool TeExternalTheme::save | ( | TeDatabase * | db,
|  | const bool & | copyExternalCollection = `true`
| ) |  | `[virtual]`

Save the the theme parameters in the database.

bool TeExternalTheme::saveGrouping | ( | TeSelectedObjects | selectedObjects = `TeAll` | ) | `[virtual]`

Build the grouping and associate each object to its group in the collection table.

Reimplemented from TeTheme.

bool TeExternalTheme::saveLegendInCollection | ( | TeSelectedObjects | selectedObjects = `TeAll`,
|  | std::string | objectId = `""`
| ) |  | `[virtual]`

Save the theme grouping legends in the collection table.

Reimplemented from TeTheme.

bool TeExternalTheme::saveLegendInCollection | ( | TeDatabase * | db,
|  | TeSelectedObjects | selectedObjects = `TeAll`,
|  | std::string | objectId = `""`
| ) |  | `[virtual]`

Save the theme grouping legends in the collection table.

Reimplemented from TeTheme.

bool TeExternalTheme::saveMetadata | ( | TeDatabase * | db | ) | `[virtual]`

Save the theme metadata in database.

Reimplemented from TeTheme.

bool TeExternalTheme::setAttTables | ( | TeAttrTableVector & | attrs | ) | `[virtual]`

Sets the entire list of attribute tables used by this theme.

Reimplemented from TeTheme.

void TeExternalTheme::setLegendsForObjects | ( |  | ) | `[virtual]`

! Set the legend id for each object of the theme.

Reimplemented from TeTheme.

bool TeExternalTheme::setObjectGridStatusMap | ( | const std::string | objId,
|  | const int | uniqueId,
|  | const int | status
| ) |  | `[virtual]`

bool TeExternalTheme::setObjectLegendStatusMap | ( | const std::string | objId,
|  | const int | status
| ) |  | `[virtual]`

void TeExternalTheme::setRemoteDbId | ( | const int & | removeDbId | ) |

Sets the remote the id for this external theme.

void TeExternalTheme::setRemoteTheme | ( | TeTheme * | theme | ) | `[virtual]`

void TeExternalTheme::setSourceDatabase | ( | TeDatabase * | srcDB | ) | `[virtual]`

TeAttributeList TeExternalTheme::sqlAttList | ( |  | ) | `[virtual]`

Returns the list of attributes of theme tables.

Reimplemented from TeTheme.

string TeExternalTheme::sqlFrom | ( |  | ) | `[virtual]`

Returns a SQL FROM CLAUSE that gives access to all attribute tables used by this theme.

Reimplemented from TeTheme.

string TeExternalTheme::sqlGridFrom | ( | const string & | geomTable = `""` | ) | `[virtual]`

Returns a FROM clause of a SQL statement to get attributes of the theme objects, the attributes of the collection table, and the attributes of the extended collection table .

Note:
  In a Remote Theme this method returns an empty string.

Reimplemented from TeTheme.

string TeExternalTheme::sqlGridJoin | ( |  | ) | `[virtual]`

Returns a SQL JOIN statement to get all the attributes of the theme objects, the attributes of the collection table, and the attributes of the extended collection table.

Note:
  In a Remote Theme this method returns an empty string.

Reimplemented from TeTheme.

string TeExternalTheme::sqlJoin | ( |  | ) | `[virtual]`

! Returns a SQL JOIN statement to reach to all attribute tables used by this theme.

Reimplemented from TeTheme.

TeAttributeList TeExternalTheme::sqlNumAttList | ( |  | ) | `[virtual]`

Returns the list of numerical attributes of the theme tables.

Reimplemented from TeTheme.

string TeExternalTheme::sqlWhereRestrictions | ( | TeRepresentation * | rep = `0` | ) | `[virtual]`

Returns the clause WHERE derived from the combination of all restricitions (spatial, attribute and temporal).

Note:
  In a Remote Theme this method always returns an empty string.

Reimplemented from TeTheme.

## Member Data Documentation

int TeExternalTheme::remoteDbId_`[protected]`

TeTheme* TeExternalTheme::remoteTheme_`[protected]`

A pointer to a theme in a remote database.

TeDatabase* TeExternalTheme::sourceDB_`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeExternalTheme.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeExternalTheme.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines