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"
40 namespace da {
class DataSource; }
41 namespace dt {
class AbstractData; }
42 namespace graph {
class AbstractGraph; }
47 class GeneralizedProximityMatrix;
A dataset is the unit of information manipulated by the data access module of TerraLib.
An abstract class for data providers like a DBMS, Web Services or a regular file.
A base class for values that can be retrieved from the data access module.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
This class defines a Generalized Proximity Matrix.
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.
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 double GetDataValue(te::dt::AbstractData *ad)
Function used to get the numeric value from a gpm property.
TESAEXPORT int AssociateGPMVertexAttribute(te::sa::GeneralizedProximityMatrix *gpm, te::da::DataSource *ds, std::string dataSetName, 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.
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 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 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.
An utility struct for representing 2D coordinates.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.