This class defines functions used to load and save gpm's using GAL and GWT formats, both formats use a ' ' as separator.  
 More...
#include <SpatialWeightsExchanger.h>
 | 
| static void  | getSpatialWeightsFileInfo (std::string pathFileName, std::string &dataSetName, std::string &attrName) | 
|   | Function used to get information of how a Spatial Weights was generated.  More...
  | 
|   | 
This class defines functions used to load and save gpm's using GAL and GWT formats, both formats use a ' ' as separator. 
Definition at line 74 of file SpatialWeightsExchanger.h.
 
      
        
          | te::sa::SpatialWeightsExchanger::SpatialWeightsExchanger  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | te::sa::SpatialWeightsExchanger::~SpatialWeightsExchanger  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Function used to associate the geometry coord attribute to vertex objects. 
- Parameters
 - 
  
    | g | Pointer to a valid graph  | 
    | ds | Pointer to a valid data source  | 
  
   
 
 
Function used to export a gpm to Spatial Weights File GAL Format. 
- Parameters
 - 
  
    | gpm | Pointer to a valid graph  | 
    | pathFileName | Path and file name (with extension) for file creation.  | 
  
   
 
 
Function used to export a gpm to Spatial Weights File GWT Format. 
- Parameters
 - 
  
    | gpm | Pointer to a valid graph  | 
    | pathFileName | Path and file name (with extension) for file creation.  | 
    | distAttrIdx | Edge Atrribute index with distance information  | 
  
   
 
 
  
  
      
        
          | int te::sa::SpatialWeightsExchanger::getEdgeId  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Function used to generated the edge id. 
- Returns
 - Integer value as ID 
 
 
 
  
  
      
        
          | static void te::sa::SpatialWeightsExchanger::getSpatialWeightsFileInfo  | 
          ( | 
          std::string  | 
          pathFileName,  | 
         
        
           | 
           | 
          std::string &  | 
          dataSetName,  | 
         
        
           | 
           | 
          std::string &  | 
          attrName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Function used to get information of how a Spatial Weights was generated. 
- Parameters
 - 
  
    | pathFileName | Path and file name (with extension) with Spatial Weights information.  | 
    | dataSetName | Information about the dataset used to generate this file.  | 
    | attrName | Information about the attribute used to generate this file. | 
  
   
- Returns
 - A Valid gpm pointer if the file was correctly readed and null pointer in other case. 
 
 
 
Function used to import a gpm from a Spatial Weights File GAL Format. 
- Parameters
 - 
  
    | pathFileName | Path and file name (with extension) with Spatial Weights information.  | 
    | ds | Pointer to a datasource in case the gal file has the shapefile information. | 
  
   
- Returns
 - A Valid gpm pointer if the file was correctly readed and null pointer in other case. 
 
 
 
Function used to import a gpm from a Spatial Weights File GWT Format. 
- Parameters
 - 
  
    | pathFileName | Path and file name (with extension) with Spatial Weights information.  | 
    | ds | Pointer to a datasource in case the gwt file has the shapefile information. | 
  
   
- Returns
 - A Valid gpm pointer if the file was correctly readed and null pointer in other case. 
 
 
 
  
  
      
        
          | int te::sa::SpatialWeightsExchanger::m_edgeId | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: