| 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/kernel/TeSpatialOperations.cpp File Reference
`#include "TeSpatialOperations.h"`
`#include "TeGeometryAlgorithms.h"`
`#include "TeRasterRemap.h"`
`#include "TeStatistics.h"`
`#include "TeOverlay.h"`
`#include "TeBufferRegion.h"`
`#include "TeProgress.h"`
`#include "TeVectorRemap.h"`
`#include <algorithm>`

## Functions

TeProjection * | getProjectionFromGeomTable (const string &geomTable, TeDatabase *db)
bool | TeTopologicalRelation (const TePolygon *geom1, const TePolygon *geom2, int relation)
| Return whether the specified topological relation holds between two polygon.
bool | TeTopologicalRelation (const TePolygon *geom1, const TeLine2D *geom2, int relation)
| Return whether the specified topological relation holds between a polygon and a line.
bool | TeTopologicalRelation (const TePolygon *geom1, const TePoint *geom2, int relation)
| Return whether the specified topological relation holds between a polygon and a point.
bool | TeTopologicalRelation (const TeLine2D *geom1, const TeLine2D *geom2, int relation)
| Return whether the specified topological relation holds between two lines.
bool | TeTopologicalRelation (const TeLine2D *geom1, const TePoint *geom2, int relation)
| Return whether the specified topological relation holds between a line and a point.
bool | TeTopologicalRelation (const TePoint *geom1, const TePoint *geom2, int relation)
| Return whether the specified topological relation holds between two points.
bool | TeTopologicalRelation (const TeCell *geom1, const TeCell *geom2, int relation)
| Return whether the specified topological relation holds between two cells.
bool | TeTopologicalRelation (const TeCell *geom1, const TePolygon *geom2, int relation)
| Return whether the specified topological relation holds between a cell and a polygon.
bool | TeTopologicalRelation (const TeCell *geom1, const TeLine2D *geom2, int relation)
| Return whether the specified topological relation holds between a cell and a line.
bool | TeTopologicalRelation (const TeCell *geom1, const TePoint *geom2, int relation)
| Return whether the specified topological relation holds between a cell and a point.
string | getStringIds (TeKeys &IdsIn)
| Return a string with the identifications of the selected geometries.
string | mountSelect (string geomTable, string colTable, TeGeomRep rep, TeBox &box, int relate, TeDatabasePortal *portal)
bool | fillSelectedGeomVector (TeGeomRep actRep, TeSelectedGeom &vetGeom, TeDatabasePortal *portal, TeProjection *projAct=0, TeProjection *projVis=0)
bool | fillResultIdsVector (TeGeometry *geom, TeDatabasePortal *portal, TeGeomRep portalRep, int relate, TeKeys &resultIds)
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeDatabasePortal *portal, int relation, const string &actColTable)
| Return a portal with the geometries of a spatial table that have a topological relation with specifics geometries of this spatial table.
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, const string &visGeomTable, TeGeomRep visRep, TeDatabasePortal *portal, int relation, const string &visColTable)
| Return a portal with the geometries of a spatial table that have a topological relation with specifics geometries of other spatial table.
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeGeometry *geom, TeDatabasePortal *portal, int relation, const string &actCollTable)
| Return a portal with the geometries of a spatial table that have a topological relation with a specific geometry.
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeKeys &actIdsOut, TeDatabase *db, int relation, const string &actCollTable)
| Return the identications of the geometries of a spatial table that have a topological relation with specifics geometries of this spatial table.
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, const string &visGeomTable, TeGeomRep visRep, TeKeys &visIdsOut, TeDatabase *db, int relation, const string &visCollTable, TeDatabase *dbVis)
| Return the identications of the geometries of a spatial table that have a topological relation with specifics geometries of other spatial table.
bool | TeTopologicalRelation (const string &actGeomTable, TeGeomRep actRep, TeGeometry *geom, TeKeys &actIdsOut, TeDatabase *db, int relation, const string &actCollTable)
| Return the identications of the geometries of a spatial table that have a topological relation with a specific geometry.
bool | TeGetWithinDistance (const string &actGeomTable, TeGeomRep actRep, const TeCoord2D &point, TeKeysToDist &IdsDistOut, TeDatabase *db, const double &max_dist, const string &actCollTable)
| Returns the geometries of a geometric table (actGeomTable) that are within a specific distance from a point in memory.
bool | TeGetArea (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeDatabase *db, double &area)
| Return the area of some specifics geometries of a spatial table.
bool | TeGetLength (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeDatabase *db, double &length)
| Return the length of some specifics geometries of a spatial table.
bool | TeGetDistance (const string &actGeomTable, TeGeomRep actRep, TeKeys &IdsIn, TeDatabase *db, double &distance)
| Return the distance between two geometries.
bool | TeGetConvexHull (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TePolygonSet &convexHullSet)
| Return the convexhull geometries of specifics geometries of a spatial table.
bool | TeGetCentroid (const string &actGeomTable, TeGeomRep actRep, TeDatabase *db, TePointSet &centroidSet, TeKeys &actIds, const string &actCollTable)
| Return the centroids of specifics geometries of a spatial table.
bool | TeGetBuffer (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TePolygonSet &bufferSet, double dist)
| Return the buffer.
bool | TeGetOverlay (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TeGeometryVect &geomVect, const short &operation)
| Return intersection.
TeRaster * | TeMask (TeRaster *whole, TePolygon &poly, TeStrategicIterator st)
| Clip a raster from a polygon. Return the clipped raster.

## Function Documentation

bool fillResultIdsVector | ( | TeGeometry * | geom,
|  | TeDatabasePortal * | portal,
|  | TeGeomRep | portalRep,
|  | int | relate,
|  | TeKeys & | resultIds
| ) |  |

bool fillSelectedGeomVector | ( | TeGeomRep | actRep,
|  | TeSelectedGeom & | vetGeom,
|  | TeDatabasePortal * | portal,
|  | TeProjection * | projAct = `0`,
|  | TeProjection * | projVis = `0`
| ) |  |

TeProjection* getProjectionFromGeomTable | ( | const string & | geomTable,
|  | TeDatabase * | db
| ) |  |

string getStringIds | ( | TeKeys & | IdsIn | ) |

Return a string with the identifications of the selected geometries.

string mountSelect | ( | string | geomTable,
|  | string | colTable,
|  | TeGeomRep | rep,
|  | TeBox & | box,
|  | int | relate,
|  | TeDatabasePortal * | portal
| ) |  |

bool TeGetArea | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | TeDatabase * | db,
|  | double & | area
| ) |  |

Return the area of some specifics geometries of a spatial table.

Parameters:

  actGeomTable | spatial table name that contains the geometries
  actRep | geometrical representation of the spatial table
  actIdsIn | identifications of the specifics geometries (object_id)
  db | a TeDatabase pointer
  area | area returned

bool TeGetBuffer | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIds,
|  | TeDatabase * | db,
|  | TePolygonSet & | bufferSet,
|  | double | dist
| ) |  |

Return the buffer.

bool TeGetCentroid | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeDatabase * | db,
|  | TePointSet & | centroidSet,
|  | TeKeys & | actIds,
|  | const string & | actCollTable
| ) |  |

Return the centroids of specifics geometries of a spatial table.

bool TeGetConvexHull | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIds,
|  | TeDatabase * | db,
|  | TePolygonSet & | convexHullSet
| ) |  |

Return the convexhull geometries of specifics geometries of a spatial table.

Parameters:

  actGeomTable | spatial table name that contains the geometries
  actRep | geometrical representation of the spatial table
  actIds | identifications of the specifics geometries (object_id)
  db | a TeDatabase pointer
  convexHullSet | the convexhull geometries returned

bool TeGetDistance | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | IdsIn,
|  | TeDatabase * | db,
|  | double & | distance
| ) |  |

Return the distance between two geometries.

bool TeGetLength | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | TeDatabase * | db,
|  | double & | length
| ) |  |

Return the length of some specifics geometries of a spatial table.

bool TeGetOverlay | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIds,
|  | TeDatabase * | db,
|  | TeGeometryVect & | geomVect,
|  | const short & | operation
| ) |  |

Return intersection.

bool TeGetWithinDistance | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | const TeCoord2D & | point,
|  | TeKeysToDist & | IdsDistOut,
|  | TeDatabase * | db,
|  | const double & | max_dist,
|  | const string & | actCollTable = `""`
| ) |  |

Returns the geometries of a geometric table (actGeomTable) that are within a specific distance from a point in memory.

Parameters:

  actGeomTable | geometric table name
  actRep | geometric representation of the actGeomTable table
  point | a point in memory
  IdsDistOut | structure that will contain the identifiers of the resulted geometries and their distances
  db | a TeDatabase pointer
  max_dist | maximum distance
  actCollTable | collection table name associated with the actGeomTable table

TeRaster* TeMask | ( | TeRaster * | rasterIn,
|  | TePolygon & | poly,
|  | TeStrategicIterator | st
| ) |  |

Clip a raster from a polygon. Return the clipped raster.

Parameters:

  rasterIn | TeRaster pointer that will be clipped
  poly | polygon that defines the clipping
  st | strategic to the iterator of the raster

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | const string & | visGeomTable,
|  | TeGeomRep | visRep,
|  | TeDatabasePortal * | portal,
|  | int | relation,
|  | const string & | visColTable = `""`
| ) |  |

Return a portal with the geometries of a spatial table that have a topological relation with specifics geometries of other spatial table.

Calculate the topological relation between all geometries of a spatial table and specifics geometries of other spatial table

Parameters:

  actGeomTable | first spatial table name that contains the specifics geometries
  actRep | geometrical representation of the first spatial table
  actIdsIn | identifications of specifics geometries of the first spatial table (object_id)
  visGeomTable | second spatial table name that contains the others geometries
  visRep | geometrical representation of the second spatial table
  portal | returned with the resultants geometries
  relation | topological relation that will be computed
  visColTable | collection table name that contains a set of geometries of the second spatial table

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | TeDatabasePortal * | portal,
|  | int | relation,
|  | const string & | actColTable = `""`
| ) |  |

Return a portal with the geometries of a spatial table that have a topological relation with specifics geometries of this spatial table.

Calculate the topological relation between all geometries of a spatial table and specifics geometries of this spatial table

Parameters:

  actGeomTable | spatial table name that contains all the geometries
  actRep | geometrical representation of the spatial table
  actIdsIn | identifications of the specifics geometries (object_id)
  portal | returned with the resultants geometries
  relation | topological relation that will be computed
  actColTable | collection table name that contains a set of geometries of the spatial table

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeGeometry * | geom,
|  | TeKeys & | actIdsOut,
|  | TeDatabase * | db,
|  | int | relation,
|  | const string & | actCollTable = `""`
| ) |  |

Return the identications of the geometries of a spatial table that have a topological relation with a specific geometry.

Calculate the topological relation between all geometries of a spatial table and a specific geometry

Parameters:

  actGeomTable | spatial table name that contains the geometries
  actRep | geometrical representation of the spatial table
  geom | a specific geometry
  actIdsOut | returned with the identications of the resultants geometries (object_id)
  db | a TeDatabase pointer
  relation | topological relation that will be computed
  actCollTable | collection table name that contains a set of geometries of the spatial table

bool TeTopologicalRelation | ( | const TePoint * | geom1,
|  | const TePoint * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between two points.

Parameters:

  geom1 | a point
  geom2 | another point
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TeLine2D * | geom1,
|  | const TeLine2D * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between two lines.

Parameters:

  geom1 | a line
  geom2 | another line
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TeLine2D * | geom1,
|  | const TePoint * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a line and a point.

Parameters:

  geom1 | a line
  geom2 | a point
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TePolygon * | geom1,
|  | const TePolygon * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between two polygon.

Parameters:

  geom1 | a polygon
  geom2 | another polygon
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TeCell * | geom1,
|  | const TeLine2D * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a cell and a line.

Parameters:

  geom1 | a cell
  geom2 | a line
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TeCell * | geom1,
|  | const TePolygon * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a cell and a polygon.

Parameters:

  geom1 | a cell
  geom2 | a polygon
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TeCell * | geom1,
|  | const TeCell * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between two cells.

Parameters:

  geom1 | a cell
  geom2 | another cell
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | const string & | visGeomTable,
|  | TeGeomRep | visRep,
|  | TeKeys & | visIdsOut,
|  | TeDatabase * | db,
|  | int | relation,
|  | const string & | visCollTable = `""`,
|  | TeDatabase * | = `0`
| ) |  |

Return the identications of the geometries of a spatial table that have a topological relation with specifics geometries of other spatial table.

Calculate the topological relation between all geometries of a spatial table and specifics geometries of other spatial table

Parameters:

  actGeomTable | first spatial table name that contains the specifics geometries
  actRep | geometrical representation of the first spatial table
  actIdsIn | identifications of specifics geometries of the first spatial table (object_id)
  visGeomTable | second spatial table name that contains the others geometries
  visRep | geometrical representation of the second spatial table
  visIdsOut | returned with the identications of the resultants geometries (object_id)
  db | a TeDatabase pointer
  relation | topological relation that will be computed
  visCollTable | collection table name that contains a set of geometries of the second spatial table

bool TeTopologicalRelation | ( | const TeCell * | geom1,
|  | const TePoint * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a cell and a point.

Parameters:

  geom1 | a cell
  geom2 | a point
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TePolygon * | geom1,
|  | const TeLine2D * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a polygon and a line.

Parameters:

  geom1 | a polygon
  geom2 | a line
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const TePolygon * | geom1,
|  | const TePoint * | geom2,
|  | int | relation
| ) |  |

Return whether the specified topological relation holds between a polygon and a point.

Parameters:

  geom1 | a polygon
  geom2 | a point
  relation | topological relation to be verified

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeGeometry * | geom,
|  | TeDatabasePortal * | portal,
|  | int | relation,
|  | const string & | actCollTable = `""`
| ) |  |

Return a portal with the geometries of a spatial table that have a topological relation with a specific geometry.

Calculate the topological relation between all geometries of a spatial table and a specific geometry

Parameters:

  actGeomTable | spatial table name that contains the geometries
  actRep | geometrical representation of the spatial table
  geom | a specific geometry
  portal | returned with the resultants geometries
  relation | topological relation that will be computed
  actCollTable | collection table name that contains a set of geometries of the spatial table

bool TeTopologicalRelation | ( | const string & | actGeomTable,
|  | TeGeomRep | actRep,
|  | TeKeys & | actIdsIn,
|  | TeKeys & | actIdsOut,
|  | TeDatabase * | db,
|  | int | relation,
|  | const string & | actCollTable = `""`
| ) |  |

Return the identications of the geometries of a spatial table that have a topological relation with specifics geometries of this spatial table.

Calculate the topological relation between all geometries of a spatial table and specifics geometries of this spatial table

Parameters:

  actGeomTable | spatial table name that contains all the geometries
  actRep | geometrical representation of the spatial table
  actIdsIn | identifications of the specifics geometries (object_id)
  actIdsOut | returned with the identications of the resultants geometries (object_id)
  db | a TeDatabase pointer
  relation | topological relation that will be computed
  actCollTable | collection table name that contains a set of geometries of the spatial table

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines