summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-11 07:42:11 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-11 07:42:11 (GMT)
commit65eb67f9b39f830c74b896a5728561bbcb610de5 (patch)
tree271bea99a628320620c6f8962b3e777d4dceb3cb
parent8e561af10a56c55b4eadfa916272d6852fa67aca (diff)
Add landmass tag when merging backdrop
-rw-r--r--tools/vectorosm-tilecreator/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/vectorosm-tilecreator/main.cpp b/tools/vectorosm-tilecreator/main.cpp
index edc3507..5bae2c2 100644
--- a/tools/vectorosm-tilecreator/main.cpp
+++ b/tools/vectorosm-tilecreator/main.cpp
@@ -160,8 +160,13 @@ GeoDataDocument* mergeDocuments(GeoDataDocument* map1, GeoDataDocument* map2)
{
GeoDataDocument* mergedMap = new GeoDataDocument(*map1);
+ OsmPlacemarkData marbleLand;
+ marbleLand.addTag("marble_land","landmass");
foreach (auto placemark, map2->placemarkList()) {
GeoDataPlacemark* land = new GeoDataPlacemark(*placemark);
+ if(land->geometry()->nodeType() == GeoDataTypes::GeoDataPolygonType) {
+ land->setOsmData(marbleLand);
+ }
mergedMap->append(land);
}