![]() |
TerraLib 4.1
|
This file contains functions to spatial operations with geographical objects that are in a SGBD. More...
Go to the source code of this file.
Typedefs | |
| typedef vector< TeGeometry * > | TeSelectedGeom |
| Keep the selected geometries in the canvas. | |
Functions | |
| TL_DLL string | getStringIds (TeKeys &IdsIn) |
| Return a string with the identifications of the selected geometries. | |
| TL_DLL 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. | |
| TL_DLL 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. | |
| TL_DLL 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. | |
| TL_DLL 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. | |
| TL_DLL 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. | |
| TL_DLL 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. | |
| TL_DLL bool | TeTopologicalRelation (const TePolygon *geom1, const TePolygon *geom2, int relation) |
| Return whether the specified topological relation holds between two polygon. | |
| TL_DLL bool | TeTopologicalRelation (const TePolygon *geom1, const TeLine2D *geom2, int relation) |
| Return whether the specified topological relation holds between a polygon and a line. | |
| TL_DLL bool | TeTopologicalRelation (const TePolygon *geom1, const TePoint *geom2, int relation) |
| Return whether the specified topological relation holds between a polygon and a point. | |
| TL_DLL bool | TeTopologicalRelation (const TeLine2D *geom1, const TeLine2D *geom2, int relation) |
| Return whether the specified topological relation holds between two lines. | |
| TL_DLL bool | TeTopologicalRelation (const TeLine2D *geom1, const TePoint *geom2, int relation) |
| Return whether the specified topological relation holds between a line and a point. | |
| TL_DLL bool | TeTopologicalRelation (const TePoint *geom1, const TePoint *geom2, int relation) |
| Return whether the specified topological relation holds between two points. | |
| TL_DLL bool | TeTopologicalRelation (const TeCell *geom1, const TeCell *geom2, int relation) |
| Return whether the specified topological relation holds between two cells. | |
| TL_DLL bool | TeTopologicalRelation (const TeCell *geom1, const TePolygon *geom2, int relation) |
| Return whether the specified topological relation holds between a cell and a polygon. | |
| TL_DLL bool | TeTopologicalRelation (const TeCell *geom1, const TeLine2D *geom2, int relation) |
| Return whether the specified topological relation holds between a cell and a line. | |
| TL_DLL bool | TeTopologicalRelation (const TeCell *geom1, const TePoint *geom2, int relation) |
| Return whether the specified topological relation holds between a cell and a point. | |
| TL_DLL 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. | |
| TL_DLL bool | TeGetArea (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeDatabase *db, double &area) |
| Return the area of some specifics geometries of a spatial table. | |
| TL_DLL bool | TeGetLength (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIdsIn, TeDatabase *db, double &length) |
| Return the length of some specifics geometries of a spatial table. | |
| TL_DLL bool | TeGetDistance (const string &actGeomTable, TeGeomRep actRep, TeKeys &IdsIn, TeDatabase *db, double &distance) |
| Return the distance between two geometries. | |
| TL_DLL bool | TeGetConvexHull (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TePolygonSet &convexHullSet) |
| Return the convexhull geometries of specifics geometries of a spatial table. | |
| TL_DLL bool | TeGetCentroid (const string &actGeomTable, TeGeomRep actRep, TeDatabase *db, TePointSet ¢roidSet, TeKeys &actIds, const string &actCollTable="") |
| Return the centroids of specifics geometries of a spatial table. | |
| TL_DLL bool | TeGetBuffer (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TePolygonSet &bufferSet, double dist) |
| Return the buffer. | |
| TL_DLL bool | TeGetOverlay (const string &actGeomTable, TeGeomRep actRep, TeKeys &actIds, TeDatabase *db, TeGeometryVect &geomVect, const short &operation) |
| Return intersection. | |
| TL_DLL TeRaster * | TeMask (TeRaster *rasterIn, TePolygon &poly, TeStrategicIterator st) |
| Clip a raster from a polygon. Return the clipped raster. | |
This file contains functions to spatial operations with geographical objects that are in a SGBD.
| typedef vector<TeGeometry*> TeSelectedGeom |
Keep the selected geometries in the canvas.
Return a string with the identifications of the selected geometries.
| TL_DLL bool TeGetArea | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | actIdsIn, | ||
| TeDatabase * | db, | ||
| double & | area | ||
| ) |
Return the area of some specifics geometries of a spatial table.
| 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 |
| TL_DLL bool TeGetBuffer | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | actIds, | ||
| TeDatabase * | db, | ||
| TePolygonSet & | bufferSet, | ||
| double | dist | ||
| ) |
Return the buffer.
| TL_DLL 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.
| TL_DLL bool TeGetConvexHull | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | actIds, | ||
| TeDatabase * | db, | ||
| TePolygonSet & | convexHullSet | ||
| ) |
Return the convexhull geometries of specifics geometries of a spatial table.
| 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 |
| TL_DLL bool TeGetDistance | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | IdsIn, | ||
| TeDatabase * | db, | ||
| double & | distance | ||
| ) |
Return the distance between two geometries.
| TL_DLL bool TeGetLength | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | actIdsIn, | ||
| TeDatabase * | db, | ||
| double & | length | ||
| ) |
Return the length of some specifics geometries of a spatial table.
| TL_DLL bool TeGetOverlay | ( | const string & | actGeomTable, |
| TeGeomRep | actRep, | ||
| TeKeys & | actIds, | ||
| TeDatabase * | db, | ||
| TeGeometryVect & | geomVect, | ||
| const short & | operation | ||
| ) |
Return intersection.
| TL_DLL 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.
| 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 |
| TL_DLL TeRaster* TeMask | ( | TeRaster * | rasterIn, |
| TePolygon & | poly, | ||
| TeStrategicIterator | st | ||
| ) |
Clip a raster from a polygon. Return the clipped raster.
| rasterIn | TeRaster pointer that will be clipped |
| poly | polygon that defines the clipping |
| st | strategic to the iterator of the raster |
Return whether the specified topological relation holds between a cell and a point.
| geom1 | a cell |
| geom2 | a point |
| relation | topological relation to be verified |
Return whether the specified topological relation holds between a cell and a line.
| geom1 | a cell |
| geom2 | a line |
| relation | topological relation to be verified |
Return whether the specified topological relation holds between a cell and a polygon.
| geom1 | a cell |
| geom2 | a polygon |
| relation | topological relation to be verified |
Return whether the specified topological relation holds between two cells.
| geom1 | a cell |
| geom2 | another cell |
| relation | topological relation to be verified |
| TL_DLL 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
| 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 |
| TL_DLL 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
| 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 |
Return whether the specified topological relation holds between a line and a point.
| geom1 | a line |
| geom2 | a point |
| relation | topological relation to be verified |
Return whether the specified topological relation holds between two points.
| geom1 | a point |
| geom2 | another point |
| relation | topological relation to be verified |
| TL_DLL 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
| 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 |
| TL_DLL bool TeTopologicalRelation | ( | const TePolygon * | geom1, |
| const TePolygon * | geom2, | ||
| int | relation | ||
| ) |
Return whether the specified topological relation holds between two polygon.
| geom1 | a polygon |
| geom2 | another polygon |
| relation | topological relation to be verified |
| TL_DLL 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
| 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 |
Return whether the specified topological relation holds between a polygon and a point.
| geom1 | a polygon |
| geom2 | a point |
| relation | topological relation to be verified |
Return whether the specified topological relation holds between two lines.
| geom1 | a line |
| geom2 | another line |
| relation | topological relation to be verified |
| TL_DLL 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
| 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 |
Return whether the specified topological relation holds between a polygon and a line.
| geom1 | a polygon |
| geom2 | a line |
| relation | topological relation to be verified |
| TL_DLL 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
| 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 |