Hi, quiete regular i have the problem that i'd like to render stuff with mapnik and an XML file. Now i need to change the datasource e.g. for switching to historic tables or something.
Currently i am modifying the XML itself with regex like this:
for line in i:
line=line.replace("%PREFIX%", "germany_" + date)
where the Datasource is something like this:
(select way,admin_level from %PREFIX%_roads where
"boundary"='administrative') as admin</Parameter>
Is there a way to change this from python - e.g. read the XML
file and modify the datasource afterwards?
An alternative would be to add a layer and reference Styles in
the XML afterwards, which would probably break the layering.
Flo
--
Florian Lohoff [email protected]
"Es ist ein grobes Missverständnis und eine Fehlwahrnehmung, dem Staat
im Internet Zensur- und Überwachungsabsichten zu unterstellen."
- - Bundesminister Dr. Wolfgang Schäuble -- 10. Juli in Berlin
signature.asc
Description: Digital signature
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

