30#ifndef __TERRALIB_GRAPH_INTERNAL_FLOWGRAPHBUILDER_H
31#define __TERRALIB_GRAPH_INTERNAL_FLOWGRAPHBUILDER_H
43#include <boost/ptr_container/ptr_vector.hpp>
110 bool build(
const std::string& shapeFileName,
const std::string& linkColumn,
const int& srid,
const std::string& csvFileName,
const int& fromIdx,
const int& toIdx,
const int& weightIdx,
111 const std::string& dsInfo,
const std::string& graphType,
const std::map<std::string, std::string>& gInfo);
131 std::unique_ptr<te::da::DataSource>
getDataSource(
const std::string fileName);
159 bool createVertexObjects(
const std::string& shapeFileName,
const std::string& linkColumn,
const int& srid);
172 bool createEdgeObjects(
const std::string& csvFileName,
const int& fromIdx,
const int& toIdx,
const int& weightIdx);
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.
int m_edgeId
Attribute used as a index counter for edge objects.
bool createEdgeObjects(const std::string &csvFileName, const int &fromIdx, const int &toIdx, const int &weightIdx)
Function used to create all edges object based on flow table data.
virtual ~FlowGraphBuilder()
Virtual destructor.
bool build(const std::string &shapeFileName, const std::string &linkColumn, const int &srid, const std::string &csvFileName, const int &fromIdx, const int &toIdx, const int &weightIdx, const std::string &dsInfo, const std::string &graphType, const std::map< std::string, std::string > &gInfo)
Function used to build the output graph based on input parameters.
boost::ptr_vector< te::dt::Property > getProperties(te::da::DataSource *ds)
Function used to get the data source properties.
std::unique_ptr< te::da::DataSource > getDataSource(const std::string fileName)
Function used to get the data source with the vectorial data.
int getEdgeId()
Function used to generated the edge id.
std::unique_ptr< te::da::DataSet > getDataSet(te::da::DataSource *ds)
Function used to get the data set with the vectorial data.
FlowGraphBuilder()
Default constructor.
bool createVertexObjects(const std::string &shapeFileName, const std::string &linkColumn, const int &srid)
Function used to create all vertex 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.