On Jan 8, 2010, at 4:32 AM, Anisha Kaul wrote:

> Dane,
>
> Many thanks for an eye-opener mail !
>
> I have modified the world_styles.xml and world_map.py and attached  
> them hereby.
> Logic behind the modification is mentioned in the form of comments !
>
> Still not working ! I know there is a dumb mistake in these files .
>

In your python code you have:

{{{
# I think the following coordinates are wrong w.r.t map of India
bbox = Envelope(Coord(-180.0, -90.0), Coord(180.0, 90.0))
m.zoom_to_box(bbox)
}}}

Yes, those are the wrong coordinates if your map is in mercator,  
because those are in long/lat (degrees).

Try just:

m.zoom_all() # which will zoom to bounds of all layers

Then for reference do:

print m.envelope() # will give you the coordinates in mercator

Dane

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

Reply via email to