30 #ifndef __TERRALIB_GRAPH_INTERNAL_FLOWGRAPHBUILDER_H
31 #define __TERRALIB_GRAPH_INTERNAL_FLOWGRAPHBUILDER_H
34 #include "../Config.h"
43 #include <boost/ptr_container/ptr_vector.hpp>
55 namespace dt {
class Property; }
57 namespace gm {
class GeometryProperty; }
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...
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 Flow strategy to build a graph.
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.
std::unique_ptr< te::da::DataSet > getDataSet(te::da::DataSource *ds)
Function used to get the data set with the vectorial data.
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.
int getEdgeId()
Function used to generated the edge id.
boost::ptr_vector< te::dt::Property > getProperties(te::da::DataSource *ds)
Function used to get the data source properties.
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.
std::unique_ptr< te::da::DataSource > getDataSource(const std::string fileName)
Function used to get the data source with the vectorial data.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.