The first is not really an issue yet but will be when Mapnik 0.5.0
comes out, which I think will be soon. I'm using the svn trunk so I hit
it early. Basically rawdata() went away in favor of tostring() on the image
object itself.<br>
<br>The second is just to make the fcgi version match the cgi version;
on FreeBSD I've got /usr/local/bin/python so I have to change it in
every installation. :)<br><br>I sent this to the labs@ address but then saw there was a mailing list and figured someone else may be using the SVN version of Mapnik and might need this soon.<br><br><br>Beau<br><br><br>
Index: TileCache/Layers/Mapnik.py<br>==============================<div id="1fly" class="ArwC7c ckChnd">=====================================<br>--- TileCache/Layers/Mapnik.py (revision 252)<br>+++ TileCache/Layers/Mapnik.py (working copy)<br>
@@ -1,4 +1,4 @@<br>
-# BSD Licensed, Copyright (c) 2006-2008 MetaCarta, Inc.<br>+# BSD Licensed, Copyright (c) 2006-2007 MetaCarta, Inc.<br><br> from TileCache.Layer import MetaLayer<br><br>@@ -56,7 +56,7 @@<br><br> im = mapnik.Image( *tile.size() )<br>
mapnik.render(m, im)<br>- im = PIL.Image.fromstring('RGBA', tile.size(), mapnik.rawdata(im))<br>+ im = PIL.Image.fromstring('RGBA', tile.size(), im.tostring())<br> buffer = StringIO.StringIO()<br>
im.save(buffer, self.extension)<br> buffer.seek(0)<br>Index: tilecache.fcgi<br>===================================================================<br>--- tilecache.fcgi (revision 252)<br>+++ tilecache.fcgi (working copy)<br>
@@ -1,4 +1,4 @@<br>-#!/usr/bin/python<br>+#!/usr/bin/env python<br> from TileCache.Service import wsgiApp<br><br> if __name__ == '__main__':</div>