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 .

Please have a look at them !

-- 
Regards,
Anisha Kaul
#!/usr/bin/env python

from mapnik import *

import mapnik

mapfile = 'world_styles.xml'
map_output = 'map/hello_world_using_xml_config.png'
projection = '+proj=merc +lon_0=0.0 +k=1.0 +x_0=0.0 +y_0=0.0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'

m = mapnik.Map (600, 300, projection)
mapnik.load_map (m, mapfile)

# 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) 

mapnik.render_to_file(m, map_output)

Attachment: world_styles.xml
Description: XML document


-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India

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

Reply via email to