Max96
August 7, 2015, 3:27pm
#1
Hello,
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.
Max96
JRA
(Jukka Rahkonen)
August 7, 2015, 6:11pm
#2
Try to use the official code EPSG:3857 everywhere you see now EPSG:900913.
Max96
August 8, 2015, 11:46am
#3
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
Max96
More details about OS, Postgres and PostGIS versions might help.
Hi,
I had the same issue. Solution is to compile mapnik with libxml2 support. Which it is not by default.
https://github.com/mapnik/mapnik/wiki/InstallationTroubleshooting#node-map-not-found:
Libxml2 is not the default parser used by Mapnik but the only one capable of handling XML entities (see: MapnikXMLsupport)
python scons/scons.py install XMLPARSER=libxml2
Hope that helps you.
Cheers
Carsten