summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-04 10:12:16 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-04 10:12:16 (GMT)
commit7e767314ced51c9e5212d77235bc907427691938 (patch)
treea752b97cbd7a1b4bf9b22fc398a5df187d9ca83d
parent7eee1fb78880a9267ddffc88db88d2ae51cea5b6 (diff)
Use the Marble based tooling instead of osmconvert/osmfilter
-rw-r--r--tools/natural-earth-vector-tiling/ne_tilegenerator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/natural-earth-vector-tiling/ne_tilegenerator.py b/tools/natural-earth-vector-tiling/ne_tilegenerator.py
index 038b20a..c36aa45 100644
--- a/tools/natural-earth-vector-tiling/ne_tilegenerator.py
+++ b/tools/natural-earth-vector-tiling/ne_tilegenerator.py
@@ -21,9 +21,8 @@ import argparse
import urllib3
import zipfile
sys.path.append('../shp2osm')
-sys.path.append('../vectortilecreator')
import polyshp2osm
-import vectortilecreator
+from subprocess import call
def unzip_file(filename, in_dir):
print(in_dir)
@@ -129,4 +128,4 @@ if __name__ == "__main__":
f = open('bound_info_{}'.format(level), "w")
print('tiny_planet_{}.1.osm;Level;-180.0;-86.0;180.0;86.0'.format(level), file=f)
f.close()
- vectortilecreator.run(['bound_info_{}'.format(level)], args.cache, args.refresh, args.out_dir, args.overwrite, [level])
+ call(["marble-vectorosm-tilecreator", "-e", "o5m", "-z", str(level), "-o", args.out_dir, 'tiny_planet_{}.1.osm'.format(level)])