29#ifndef __TERRALIB_GRAPH_INTERNAL_RAGGRAPHBUILDER_H
30#define __TERRALIB_GRAPH_INTERNAL_RAGGRAPHBUILDER_H
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...
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.
It models a property definition.
AbstractGraphBuilder()
Default constructor.
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.
boost::ptr_vector< te::dt::Property > getProperties(te::da::DataSource *ds)
Function used to get the data source properties.
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.
Namespace for the DataAccess API of TerraLib.
Namespace for the Data Type module of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
Configuration flags for the Graph module of TerraLib.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.