i want to generate a map with the mapnik renderer, but after entering the following command:
../mapnik/generate_xml.py --host 'localhost' --port 5432 --dbname osm --prefix view_osmde --user maxi --password '***' --inc /home/maxi/osm/mapnik-german/inc-de/ --world_boundaries /home/maxi/osm/world_boundaries/ /home/maxi/osm/mapnik-german/osm-de.xml > ./osm-local.xml
in order to create the osm-local.xml file, i get the following error message:
RuntimeError: failed to initialize projection with: '&srs900913;' in Map of '/home/maxi/osm/m'apnik-german/osm-de.xml'
I’ve already tried another version of proj but unfortunately the result is the same. What can I do to solve this issue?
Thanks in advance.
Try to use the official code EPSG:3857 everywhere you see now EPSG:900913.
Thanks for your help first of all. I tried to substitute the EPSG:900913 code everywhere I could find it, but it didn’t fix the error. Now I get this message:
RuntimeError: failed to initialize projection with: '&srs3857;' in Map of '/home/maxi/osm/map
More details about OS, Postgres and PostGIS versions might help.
I had the same issue. Solution is to compile mapnik with libxml2 support. Which it is not by default.
Hope that helps you.