[OSM-dev] Mapnik rendering: Zoom-Level to Width/Height
John Smith
deltafoxtrot256 at gmail.com
Thu Oct 15 04:55:46 BST 2009
2009/10/15 Dane Springmeyer <blake at hailmail.net>:
> John,
>
> Can you explain more what you doing via PHP?
>
> An error like 'XML document not well formed' is coming out of Mapnik proper
> not Nik2img.
I think the problem may be due to loss of privileges in PHP, on the
command line I run the same command:
/usr/bin/nik2img.py /var/lib/mod_tile/osm.xml --srs 900913 -d 512 512
--pipe --bbox 112 -45 154 -10 > /tmp/test.png
Works when run as root, doesn't when apache drops privileges and I
figured this out now when I tried to run the same command that as the
same user apache runs as.
I think I'll need to write a simple daemon and then pipe to it over a
local socket, if someone hasn't written one already that is.
More information about the dev
mailing list