summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-15 17:43:02 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-15 17:43:02 (GMT)
commitab58a6293e2929d64f97aaf857e5c6f6183ebbc1 (patch)
tree31bf1a9aaf09267e8b0bbd0b90aa30db44097e8e
parent5de15d9100ee87e034cd6797567bbc01e684b227 (diff)
Do not write tags that are not used for rendering or elsewhere
Saves a lot of space, e.g. level 1: 568K => 68K, level 3: 3.8M => 1.4M.
-rw-r--r--tools/natural-earth-vector-tiling/ne_tilegenerator.py2
-rw-r--r--tools/shp2osm/polyshp2osm.py8
2 files changed, 3 insertions, 7 deletions
diff --git a/tools/natural-earth-vector-tiling/ne_tilegenerator.py b/tools/natural-earth-vector-tiling/ne_tilegenerator.py
index 8639d9a..105d49b 100644
--- a/tools/natural-earth-vector-tiling/ne_tilegenerator.py
+++ b/tools/natural-earth-vector-tiling/ne_tilegenerator.py
@@ -130,7 +130,7 @@ if __name__ == "__main__":
print('Level has following SHP datasets: ', abs_file_paths)
target = 'tiny_planet_{}.1.osm'.format(level)
if args.overwrite or not os.path.exists(target):
- polyshp2osm.run(abs_file_paths, 1, 5000000, 'tiny_planet_{}'.format(level))
+ polyshp2osm.run(abs_file_paths, 1, 5000000, 'tiny_planet_{}'.format(level), no_source=True)
print('Tiny planetosm for Level = {} complete.'.format(level))
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)
diff --git a/tools/shp2osm/polyshp2osm.py b/tools/shp2osm/polyshp2osm.py
index 0234d2d..26cea37 100644
--- a/tools/shp2osm/polyshp2osm.py
+++ b/tools/shp2osm/polyshp2osm.py
@@ -34,12 +34,8 @@ will usually suffice.
# These tags are attached to all exterior ways. You can put any key/value pairs
# in this dictionary.
-
-fixed_tags = {
- 'source': 'Natural Earth (http://www.naturalearthdata.com/)',
- 'created_by': 'polyshp2osm'
-}
-
+
+fixed_tags = {}
feat_dict = {}
node_dict = {}
non_geom = 0