Thanks a lot Dane, it works now with 0.7.2-dev !

On 13. 11. 10 22:51, Dane Springmeyer wrote:
Looks like you just hit a bug in the OSM plugin. I think I've fixed it just now 
- could you test?

http://trac.mapnik.org/ticket/542

To do so you'll need to either rebuild the 0.7.2 development branch or current 
trunk.

The 0.7.2 development branch would likely be easiest, to do this:

svn co http://svn.mapnik.org/branches/0.7.2-dev/ mapnik-0.7.2
cd mapnik-0.7.2
sudo scons install

Dane

On Nov 13, 2010, at 11:47 AM, yvecai wrote:

I am modifying an XML file dynamically in python as a string, and I load the 
file with mapnik.load_map_from_string(...). Then, I would like to change the 
datasource.

    mapnik.load_map_from_string(m,mapfile)
    for l in m.layers:
        l.datasource = Osm(file='element2.osm')
    save_map(m,'mapfile.xml')

The mapfile.xml take into account my new datasource 'element2.osm', but 
mapnik.render(m, im) will render with my previous datasource (which is called 
'element.osm'.
The datasource is changed, but not taken into account. Any idea?

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


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

Reply via email to