This class defines the RAG strategy to build a graph,.  
 More...
#include <RAGGraphBuilder.h>
|  | 
|  | RAGGraphBuilder () | 
|  | Default constructor.  More... 
 | 
|  | 
| virtual | ~RAGGraphBuilder () | 
|  | Virtual destructor.  More... 
 | 
|  | 
|  | 
| Methods used by this builder  | 
| bool | build (const std::string &shapeFileName, const std::string &linkColumn, const int &srid, const std::map< std::string, 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.  More... 
 | 
|  | 
|  | 
| Method common to each graph builder  | 
| std::string | getErrorMessage () | 
|  | Get error message.  More... 
 | 
|  | 
| boost::shared_ptr< AbstractGraph > | getGraph () | 
|  | Get generated graph.  More... 
 | 
|  | 
This class defines the RAG strategy to build a graph,. 
This is strategy is based on adjacency of a region.
- See also
- AbstractGraphBuilder 
Definition at line 66 of file RAGGraphBuilder.h.
      
        
          | te::graph::RAGGraphBuilder::RAGGraphBuilder | ( |  | ) |  | 
      
 
 
  
  | 
        
          | virtual te::graph::RAGGraphBuilder::~RAGGraphBuilder | ( |  | ) |  |  | virtual | 
 
 
      
        
          | bool te::graph::RAGGraphBuilder::build | ( | const std::string & | shapeFileName, | 
        
          |  |  | const std::string & | linkColumn, | 
        
          |  |  | const int & | srid, | 
        
          |  |  | const std::map< std::string, 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. 
- Parameters
- 
  
    | shapeFileName | File name wiht vectorial data |  | linkColumn | Column name from vectorial data used as link column |  | srid | Vectorial projection id |  | dsInfo | Container with data source information |  | graphType | Attribute used to define the output graph type |  | gInfo | Container with graph generation parameters |  
 
- Returns
- True if the graph was correctly generated and false in other case. 
 
 
  
  | 
        
          | bool te::graph::RAGGraphBuilder::createEdgeObjects | ( | const std::string & | shapeFileName, |  
          |  |  | const std::string & | linkColumn |  
          |  | ) |  |  |  | protected | 
 
Function used to create all edges object based on vectorial data. 
- Parameters
- 
  
    | shapeFileName | File name wiht vectorial data |  | linkColumn | Column name from vectorial data used as link column |  
 
- Returns
- True if the edges was created correctly and false in othe case 
 
 
  
  | 
        
          | bool te::graph::RAGGraphBuilder::createVertexObjects | ( | const std::string & | shapeFileName, |  
          |  |  | const std::string & | linkColumn, |  
          |  |  | const int & | srid |  
          |  | ) |  |  |  | protected | 
 
Function used to create all vertex object based on vectorial data. 
- Parameters
- 
  
    | shapeFileName | File name wiht vectorial data |  | linkColumn | Column name from vectorial data used as link column |  | srid | Vectorial projection id |  
 
- Returns
- True if the vertexs was created correctly and false in othe case 
 
 
Function used to get the data set with the vectorial data. 
- Returns
- Data set. 
 
 
  
  | 
        
          | std::auto_ptr<te::da::DataSource> te::graph::RAGGraphBuilder::getDataSource | ( | const std::string & | fileName | ) |  |  | protected | 
 
Function used to get the data source with the vectorial data. 
- Returns
- Data source. 
 
 
  
  | 
        
          | int te::graph::RAGGraphBuilder::getEdgeId | ( |  | ) |  |  | protected | 
 
Function used to generated the edge id. 
- Returns
- Integer value as ID 
 
 
  
  | 
        
          | std::string te::graph::AbstractGraphBuilder::getErrorMessage | ( |  | ) |  |  | inherited | 
 
 
  
  | 
        
          | bool te::graph::RAGGraphBuilder::getGeometryColumn | ( | const std::string & | shapeFileName, |  
          |  |  | std::string & | columnName |  
          |  | ) |  |  |  | protected | 
 
Function used to get the geometry column name. 
- Parameters
- 
  
    | shapeFileName | File name wiht vectorial data |  | columnName | Used to set the geometry column name |  
 
- Returns
- True if the the vectorial data was a geometry column and false in othe case 
 
 
  
  | 
        
          | boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::getGraph | ( |  | ) |  |  | inherited | 
 
 
Function used to get the data source properties. 
- Returns
- A vector with all properties from a data source 
 
 
  
  | 
        
          | int te::graph::RAGGraphBuilder::m_edgeId |  | private | 
 
Attribute used as a index counter for edge objects. 
Definition at line 171 of file RAGGraphBuilder.h.
 
 
  
  | 
        
          | std::string te::graph::AbstractGraphBuilder::m_errorMessage |  | protectedinherited | 
 
 
  
  | 
        
          | boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::m_graph |  | protectedinherited | 
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/graph/builder/RAGGraphBuilder.h