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.
|
|
|
int | m_edgeId |
| Attribute used as a index counter for edge objects.
|
|
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.
◆ SpatialWeightsExchanger()
te::sa::SpatialWeightsExchanger::SpatialWeightsExchanger |
( |
| ) |
|
◆ ~SpatialWeightsExchanger()
te::sa::SpatialWeightsExchanger::~SpatialWeightsExchanger |
( |
| ) |
|
◆ associateGeometry()
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 |
◆ exportToGAL()
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. |
◆ exportToGWT()
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 |
◆ getEdgeId()
int te::sa::SpatialWeightsExchanger::getEdgeId |
( |
| ) |
|
|
protected |
Function used to generated the edge id.
- Returns
- Integer value as ID
◆ getSpatialWeightsFileInfo()
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.
◆ importFromGAL()
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.
◆ importFromGWT()
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.
◆ m_edgeId
int te::sa::SpatialWeightsExchanger::m_edgeId |
|
private |
The documentation for this class was generated from the following file: