29 #ifndef __TERRALIB_GRAPH_INTERNAL_RAGGRAPHBUILDER_H
30 #define __TERRALIB_GRAPH_INTERNAL_RAGGRAPHBUILDER_H
33 #include "../Config.h"
49 namespace dt {
class Property; }
51 namespace gm {
class GeometryProperty; }
96 bool build(
const std::string& shapeFileName,
const std::string& linkColumn,
const int& srid,
97 const std::string& dsInfo,
const std::string& graphType,
const std::map<std::string, std::string>& gInfo);
117 std::unique_ptr<te::da::DataSource>
getDataSource(
const std::string& fileName);
145 bool createVertexObjects(
const std::string& shapeFileName,
const std::string& linkColumn,
const int& srid);
This abstract class provides the common functions for graph builder classes. Each builder strategy ha...
An abstract class for data providers like a DBMS, Web Services or a regular file.
This abstract class provides the common functions for graph builder classes. Each builder strategy ha...
This class defines the RAG strategy to build a graph,.
RAGGraphBuilder()
Default constructor.
int getEdgeId()
Function used to generated the edge id.
int m_edgeId
Attribute used as a index counter for edge objects.
bool getGeometryColumn(const std::string &shapeFileName, std::string &columnName)
Function used to get the geometry column name.
virtual ~RAGGraphBuilder()
Virtual destructor.
std::unique_ptr< te::da::DataSource > getDataSource(const std::string &fileName)
Function used to get the data source with the vectorial data.
std::unique_ptr< te::da::DataSet > getDataSet(te::da::DataSource *ds)
Function used to get the data set with the vectorial data.
bool createVertexObjects(const std::string &shapeFileName, const std::string &linkColumn, const int &srid)
Function used to create all vertex object based on vectorial data.
bool build(const std::string &shapeFileName, const std::string &linkColumn, const int &srid, const std::string &dsInfo, const std::string &graphType, const std::map< std::string, std::string > &gInfo)
Function used to generated a graph using the RAG strategy.
bool createEdgeObjects(const std::string &shapeFileName, const std::string &linkColumn)
Function used to create all edges object based on vectorial data.
boost::ptr_vector< te::dt::Property > getProperties(te::da::DataSource *ds)
Function used to get the data source properties.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.