summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-01 17:51:05 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:32 (GMT)
commit9350556f36a600ca3f5a6feec90cf96d5cfda307 (patch)
tree411c030e8ec8d9a6cccb00a8abbf2781a1b652f2
parentaeabc117d1214c67a2fa6376a1bcca15d31fc294 (diff)
Merge rivers as well
-rw-r--r--tools/vectorosm-tilecreator/WayConcatenator.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/vectorosm-tilecreator/WayConcatenator.cpp b/tools/vectorosm-tilecreator/WayConcatenator.cpp
index b1d4f50..336c94a 100644
--- a/tools/vectorosm-tilecreator/WayConcatenator.cpp
+++ b/tools/vectorosm-tilecreator/WayConcatenator.cpp
@@ -38,8 +38,11 @@ WayConcatenator::WayConcatenator(GeoDataDocument *document) :
bool isWay = false;
if (placemark->geometry()->nodeType() == GeoDataTypes::GeoDataLineStringType) {
OsmPlacemarkData const & osmData = placemark->osmData();
- if (osmData.containsTagKey("highway") || osmData.containsTagKey("railway")) {
- isWay = true;
+ isWay = osmData.containsTagKey("highway") ||
+ osmData.containsTagKey("railway") ||
+ osmData.containsTagKey("waterway");
+ if (isWay) {
+ ;
++m_originalWays;
GeoDataLineString *line = static_cast<GeoDataLineString*>(placemark->geometry());
qint64 firstId = osmData.nodeReference(line->first()).id();