pngtile/render.py
branchunscaled-coordinates
changeset 128 66c95c2d212c
parent 127 df89d13f2354
--- a/pngtile/render.py	Sat Apr 10 22:18:41 2010 +0300
+++ b/pngtile/render.py	Sat Apr 10 22:30:00 2010 +0300
@@ -215,10 +215,6 @@
         Render given tile, returning PNG data
     """
 
-    # remap coordinates by zoom
-    x = scale_by_zoom(x, zoom)
-    y = scale_by_zoom(y, zoom)
-
     # do we want to cache this?
     if check_cache_threshold(TILE_WIDTH, TILE_HEIGHT, zoom) :
         # go via the cache
@@ -233,8 +229,8 @@
         Render arbitrary tile, returning PNG data
     """
 
-    x = scale_by_zoom(cx - width / 2, zoom)
-    y = scale_by_zoom(cy - height / 2, zoom)
+    x = cx - width / 2
+    y = cy - height / 2
 
     # safely limit
     if width * height > MAX_PIXELS :