On Mon, 2009-06-22 at 09:01 -0700, Andrew Ayre wrote:
> Interesting! So with the same input files and same script you get a 
> different output to me. Here is my output:
> 
> http://files.britishideas.com/public/mapping/output.png

Your image is definitely different to mine. The only thing I changed was
the Map() dimensions that I posted before.

> Notice how it is the same dimensions as yours but missing quite a bit 
> off the bottom. Also there are lots of jagged lines because it looks 
> like the image has been stretched.

Mine is stretched a little - it has to be given the way the dimensions
have changed. I guess the original image was in the OSM style 900913
projection. If you used this instead then you should avoid the
stretching. Alternatively, you could render the input image in latlong.

> I am using Mapnik 0.6.0 on Windows XP. If you are not using Windows 
> perhaps this is a bug in the Windows version?

I'm using a fairly recent SVN mapnik build (r1179) on Fedora 10 x86_64
along with gdal-1.5.3-1.fc10.x86_64. I don't remember any specific fixes
to the projection since 0.6 though.

I think the best approach would be to use the same projection for the
raster and output map. This should avoid any issues with the image
changing dimensions and avoid any clipping issues.

        Jon




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

Reply via email to