Store nameID with Edge
This commit is contained in:
parent
11653ef58f
commit
eca2c0c5ef
@ -156,6 +156,7 @@ void EdgeBasedGraphFactory::Run() {
|
|||||||
//create Edge for NearestNeighborlookup
|
//create Edge for NearestNeighborlookup
|
||||||
edgeBasedEdges.push_back(newEdge);
|
edgeBasedEdges.push_back(newEdge);
|
||||||
EdgeBasedNode currentNode;
|
EdgeBasedNode currentNode;
|
||||||
|
currentNode.nameID = newEdge.data.nameID1;
|
||||||
if(_nodeBasedGraph->GetEdgeData(e1).type != 14) {
|
if(_nodeBasedGraph->GetEdgeData(e1).type != 14) {
|
||||||
currentNode.lat1 = inputNodeInfoList[u].lat;
|
currentNode.lat1 = inputNodeInfoList[u].lat;
|
||||||
currentNode.lon1 = inputNodeInfoList[u].lon;
|
currentNode.lon1 = inputNodeInfoList[u].lon;
|
||||||
|
@ -78,6 +78,7 @@ public:
|
|||||||
int lon1;
|
int lon1;
|
||||||
int lon2;
|
int lon2;
|
||||||
NodeID id;
|
NodeID id;
|
||||||
|
NodeID nameID;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef DynamicGraph< _EdgeBasedEdgeData> _EdgeBasedDynamicGraph;
|
typedef DynamicGraph< _EdgeBasedEdgeData> _EdgeBasedDynamicGraph;
|
||||||
|
Loading…
Reference in New Issue
Block a user