From a4fc1f94160b995f6942d816aeb90623cca510f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kom=D1=8Fpa?= Date: Mon, 3 May 2010 14:55:03 +0300 Subject: [PATCH] Fix layering --- src/kothic.py | 5 +++-- src/osm2tiles.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kothic.py b/src/kothic.py index 277f1ca..a8cd25f 100644 --- a/src/kothic.py +++ b/src/kothic.py @@ -292,14 +292,15 @@ class RasterTile: w[0].cs = cs ww.sort(key=lambda x: x[1]["layer"]) - layers = list(set([int(x[1]["layer"]/100) for x in ww])) + layers = list(set([int(x[1]["layer"]/100.) for x in ww])) layers.sort() objs_by_layers = {} for layer in layers: objs_by_layers[layer] = [] for obj in ww: # debug(obj) - objs_by_layers[int(obj[1]["layer"]/100)].append(obj) + objs_by_layers[int(obj[1]["layer"]/100.)].append(obj) + #debug ((obj[1]["layer"], obj[0].tags)) del ww for layer in layers: data = objs_by_layers[layer] diff --git a/src/osm2tiles.py b/src/osm2tiles.py index a439b00..af2587f 100644 --- a/src/osm2tiles.py +++ b/src/osm2tiles.py @@ -30,7 +30,7 @@ try: except ImportError: pass -MAXZOOM = 15 +MAXZOOM = 16 proj = "EPSG:4326" style = Styling()