[Mapnik-users] mapnik.Raster, satellite data as background?

2009-04-19 Thread Torsten Mohr
Hello, i once downloaded two huge TIF from the Nasa web server, they are called land_shallow_topo_east.tif and land_shallow_topo_west.tif. I'd like to use these files as background when rendering a map, so i tried in a modified version of OSM's generate_image.py to add a layer for the east TIF.

Re: [Mapnik-users] mapnik.Raster, satellite data as background?

2009-04-19 Thread Luca Delucchi
2009/4/19 Torsten Mohr tm...@s.netic.de: Hello, i tried another way and added this part to the osm.xml that i use to describe the map (as the first Layer): Layer name=bground_east status=on lox=0.0 loy=-85.0511 hix=180.0 hiy=85.0511 srs=+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0

Re: [Mapnik-users] mapnik.Raster, satellite data as background?

2009-04-19 Thread Michal Migurski
Hi, Mapnik is not capable of reprojecting images, so you'll need to have a matching projection for your map, your raster image, and you bounding box. In the XML below it looks like you have degrees for your layer bounds - those should be expressed in projected units instead, and the map's

Re: [Mapnik-users] mapnik.Raster, satellite data as background?

2009-04-19 Thread Torsten Mohr
Hello, thanks for that hint. I was using lat/lon values, i think that was my main mistake. I still need to figure out the correct values and reproject the image, that is right and is what i expected. But now i at least get an image... Best regards, Torsten. Am Sonntag, 19. April 2009