On Sep 14, 2009, at 7:57 AM, Tim Boothby wrote:

AttributeError: 'Map' object has no attribute 'resize'

My Googling of this error has been fruitless, so is anybody able to shed any light on what the problem here is? Any ideas would be very much appreciated.


Upgrade to Mapnik 0.6.1. The 'resize' function was not added until the 0.6.0 release.

or change generate_tiles.py to be compatible still with Mapnik 0.5.x:

Index: generate_tiles.py
===================================================================
--- generate_tiles.py   (revision 17801)
+++ generate_tiles.py   (working copy)
@@ -79,7 +79,8 @@
         # Bounding box for the tile
         bbox = mapnik.Envelope(c0.x,c0.y, c1.x,c1.y)
         render_size = 256
-        self.m.resize(render_size, render_size)
+        self.m.width = render_size
+        self.m.height = render_size
         self.m.zoom_to_box(bbox)
         self.m.buffer_size = 128

Dane


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to