26 #ifndef __TERRALIB_EXAMPLES_INTERNAL_GRAPH_EXAMPLES_H 27 #define __TERRALIB_EXAMPLES_INTERNAL_GRAPH_EXAMPLES_H 34 #include "../Config.h" 51 std::unique_ptr<te::rst::Raster>
OpenRaster(
const std::string& pathName,
const int& srid);
54 std::unique_ptr<te::da::DataSource>
OpenOGRDataSource(
const std::string& pathName);
63 int AddGraphVertexAttribute(boost::shared_ptr<te::graph::AbstractGraph> graph, std::string attrName,
int dataType);
66 int AddGraphEdgeAttribute(boost::shared_ptr<te::graph::AbstractGraph> graph, std::string attrName,
int dataType);
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
std::unique_ptr< te::da::DataSource > OpenOGRDataSource(const std::string &pathName)
Auxiliar functions for load a org data source.
int AssociateGraphVertexAttribute(te::da::DataSource *ds, std::string dataSetName, int idIdx, int attrIdx, boost::shared_ptr< te::graph::AbstractGraph > graph, int dataType, std::string attrName)
Auxiliar functions used to create a vertex attribute in a graph and get the value from a dataset...
int AddGraphVertexAttribute(boost::shared_ptr< te::graph::AbstractGraph > graph, std::string attrName, int dataType)
Auxiliar functions used to create a vertex attribute in a graph, return the property idx...
An abstract class for raster data strucutures.
int AddGraphEdgeAttribute(boost::shared_ptr< te::graph::AbstractGraph > graph, std::string attrName, int dataType)
Auxiliar functions used to create a edge attribute in a graph, return the property idx...
static te::dt::Date ds(2010, 01, 01)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
void CreateMSTGraph(bool draw)
Creates a MST GRAPH.
std::unique_ptr< te::rst::Raster > OpenRaster(const std::string &pathName, const int &srid)
Auxiliar functions for load a raster.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
void LoadModules()
It loads the data source drivers.
An Envelope defines a 2D rectangular region.
void CreateLDDGraph(bool draw)
Creates a LDD GRAPH.
std::unique_ptr< te::gm::Envelope > getDataSetExtent(te::da::DataSource *ds, std::string dataSetName)
Auxiliar functions used to get a dataset extent.