26 #ifndef __TERRALIB_SA_INTERNAL_UTILS_H 27 #define __TERRALIB_SA_INTERNAL_UTILS_H 30 #include "../../maptools/AbstractLayer.h" 31 #include "../../srs/Config.h" 32 #include "../Config.h" 41 namespace dt {
class AbstractData; }
42 namespace graph {
class AbstractGraph; }
47 class GeneralizedProximityMatrix;
158 #endif // __TERRALIB_SA_INTERNAL_UTILS_H #define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
This class defines a Generalized Proximity Matrix.
An utility struct for representing 2D coordinates.
static te::dt::Date ds(2010, 01, 01)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
TESAEXPORT double GetArea(te::gm::Geometry *geom)
Function used to get area of a geometry.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
static te::dt::TimeDuration dt(20, 30, 50, 11)
A base class for values that can be retrieved from the data access module.
TESAEXPORT int AddGraphVertexAttribute(te::graph::AbstractGraph *graph, std::string attrName, int dataType, int srid=TE_UNKNOWN_SRS, int subType=static_cast< int >(te::gm::UnknownGeometryType))
Function used to create the vertex attribute metadata in the graph of the gpm.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A dataset is the unit of information manipulated by the data access module of TerraLib.
TESAEXPORT bool GetGraphVertexAttrIndex(te::graph::AbstractGraph *graph, std::string attrName, int &index)
Function used to get the vertex attribute index in the graph of the gpm.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
TESAEXPORT double CalculateDistance(te::gm::Geometry *geom, te::gm::Coord2D &coord)
Function used to calculate the distance from a coord to the center of a geometry. ...
TESAEXPORT int AddGraphEdgeAttribute(te::graph::AbstractGraph *graph, std::string attrName, int dataType)
Function used to create the edge attribute metadata in the graph of the gpm.
TESAEXPORT double GetDataValue(te::dt::AbstractData *ad)
Function used to get the numeric value from a gpm property.
TESAEXPORT bool GetGraphEdgeAttrIndex(te::graph::AbstractGraph *graph, std::string attrName, int &index)
Function used to get the edge attribute index in the graph of the gpm.
TESAEXPORT int AssociateGPMVertexAttribute(te::sa::GeneralizedProximityMatrix *gpm, te::da::DataSet *ds, std::string attrLink, std::string attr, int dataType, int srid=TE_UNKNOWN_SRS, int subType=static_cast< int >(te::gm::UnknownGeometryType))
Function used to set a an attribute valeu from a dataset to the vertex objects from a gpm...