File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ namespace dsm {
249249 file >> lon >> lat;
250250 auto const & it{m_nodes.find (i)};
251251 if (it != m_nodes.cend ()) {
252- it->second ->setCoords (std::make_pair (lon, lat ));
252+ it->second ->setCoords (std::make_pair (lat, lon ));
253253 } else {
254254 Logger::warning (std::format (" Node with id {} not found." , i));
255255 }
@@ -282,7 +282,7 @@ namespace dsm {
282282 dLat = lat == " Nan" ? 0 . : std::stod (lat);
283283 auto const & it{m_nodes.find (std::stoul (nodeId))};
284284 if (it != m_nodes.cend ()) {
285- it->second ->setCoords (std::make_pair (dLon, dLat ));
285+ it->second ->setCoords (std::make_pair (dLat, dLon ));
286286 } else {
287287 Logger::warning (
288288 std::format (" Node with id {} not found. Skipping coordinates ({}, {})." ,
@@ -478,7 +478,7 @@ namespace dsm {
478478 for (auto const & [nodeId, pNode] : m_nodes) {
479479 file << nodeId << ' ;' ;
480480 if (pNode->coords ().has_value ()) {
481- file << pNode->coords ().value ().first << ' ;' << pNode->coords ().value ().second ;
481+ file << pNode->coords ().value ().second << ' ;' << pNode->coords ().value ().first ;
482482 } else {
483483 file << " Nan;Nan" ;
484484 }
Original file line number Diff line number Diff line change 119
220 0
3- 1 0
4- 2 0
530 1
6- 1 1
7- 2 1
840 2
5+ 1 0
6+ 1 1
971 2
8+ 2 0
9+ 2 1
10102 2
Original file line number Diff line number Diff line change 11id;lon;lat
2- 1;1;0
2+ 1;0;1
330;0;0
4- 2;2;0
4+ 2;0;2
You can’t perform that action at this time.
0 commit comments