summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-05 15:05:06 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:34 (GMT)
commit2d0441f947d58223d023a46a0d32336fd179c349 (patch)
tree9856c9b2117c97509c93ab2ca3414cb4a7842359
parent3908eedf274fd9250c9fb142f7dfebd20662833d (diff)
Extract altitude for all nodes from ele tag
-rw-r--r--src/plugins/runner/osm/OsmNode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/OsmNode.cpp b/src/plugins/runner/osm/OsmNode.cpp
index e34cfe8..02822e9 100644
--- a/src/plugins/runner/osm/OsmNode.cpp
+++ b/src/plugins/runner/osm/OsmNode.cpp
@@ -44,7 +44,9 @@ void OsmNode::create(GeoDataDocument *document) const
GeoDataPlacemark* placemark = new GeoDataPlacemark;
placemark->setOsmData(m_osmData);
- placemark->setCoordinate(m_coordinates);
+ auto coordinates = m_coordinates;
+ coordinates.setAltitude(m_osmData.tagValue("ele").toDouble());
+ placemark->setCoordinate(coordinates);
QHash<QString, QString>::const_iterator tagIter;
if ((category == GeoDataPlacemark::TransportCarShare || category == GeoDataPlacemark::MoneyAtm)