[OSM-dev] OT: generate_tiles.py generates blank images

Jon Burgess jburgess777 at googlemail.com
Wed Oct 1 21:02:26 BST 2008


On Wed, 2008-10-01 at 20:31 +0100, John McKerrell wrote:
> In case it helps, I've attached my version of generate_tiles.py and  
> the XML file I'm using. I'm also using world_boundaries basically for  
> test data but obviously when I've got it all working I'll remove that.
> 
> John

The projection in the style and generate_tiles.py need to match. Right
now you have:

prj = Projection("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
+over")

<Map srs="+proj=latlong +datum=WGS84">

If you want to generate tiles which have a z/x/y matching the default
OSM / Google ones then you'll need to change the map SRS to be like:

<Map bgcolor="#b5d0d0" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
+over">

	Jon






More information about the dev mailing list