Hi Dane, excuse me for the retard
> > > I'trying use the WMS support to render osm data with the script > > > mapnikserv.py > > > (http://mapnik-utils.googlecode.com/svn/trunk/serverside/mapnikserv/) and > > > with the mapfile osm.xml (http://wiki.openstreetmap.org/index.php/Mapnik) > > > but does not work. > > > If I try this script with this mapfile, my browser does nothing, > > > the page does not change > That is mysterious. I wonder if there is some syntax error in the > script or you are running out of memory in apache. > Can you just try the url: > > > http://localhost/cgi-bin/mapnikserv.py?map=path/to/osm.xml alone. Does > that load with an message about other needed parameters? > > > Either way I think you'll be better off in the long term with > tilecache If I try http://localhost/cgi-bin/mapnikserv.py?map=path/to/osm.xml alone I get the following error: > No bounding box specified > > http://localhost/cgi-bin/mapnikserv.py?map=/home/tommaso/gis/mapnik/osm.xml&bbox=-180,-90,180,90 > > > > > Script Environment Settings: > > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] > {'SERVER_SOFTWARE': 'Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with > Suhosin-Patch', 'SCRIPT_NAME': '/cgi-bin/mapnikserv.py', 'SERVER_SIGNATURE': ' > > Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Server > at localhost Port 80 > > \n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': > 'HTTP/1.1', 'QUERY_STRING': 'map=/home/tommaso/gis/mapnik/osm.xml', 'PATH': > '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': > 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; > Linux i686; en-US; rv:1.8.1.17) Gecko/20080913 Firefox/2.0.0.17 Flock/1.2.6', > 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'localhost', 'REMOTE_ADDR': > '127.0.0.1', 'SERVER_PORT': '80', 'SERVER_ADDR': '127.0.0.1', > 'DOCUMENT_ROOT': '/var/www/', 'SCRIPT_FILENAME': > '/usr/lib/cgi-bin/mapnikserv.py', 'SERVER_ADMIN': '[EMAIL PROTECTED]', > 'HTTP_HOST': 'localhost', 'REQUEST_URI': > '/cgi-bin/mapnikserv.py?map=/home/tommaso/gis/mapnik/osm.xml', 'HTTP_ACCEPT': > 'text/html,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7', > 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_PORT': '53640', > 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_ACCEPT_ENCODING': > 'gzip,deflate'} > DOCUMENT_ROOT /var/www/ > GATEWAY_INTERFACE CGI/1.1 > HTTP_ACCEPT > text/html,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7 > HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 > HTTP_ACCEPT_ENCODING gzip,deflate > HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5 > HTTP_CONNECTION keep-alive > HTTP_HOST localhost > HTTP_KEEP_ALIVE 300 > HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) > Gecko/20080913 Firefox/2.0.0.17 Flock/1.2.6 > PATH /usr/local/bin:/usr/bin:/bin > QUERY_STRING map=/home/tommaso/gis/mapnik/osm.xml > REMOTE_ADDR 127.0.0.1 > REMOTE_PORT 53640 > REQUEST_METHOD GET > REQUEST_URI /cgi-bin/mapnikserv.py?map=/home/tommaso/gis/mapnik/osm.xml > SCRIPT_FILENAME /usr/lib/cgi-bin/mapnikserv.py > SCRIPT_NAME /cgi-bin/mapnikserv.py > SERVER_ADDR 127.0.0.1 > SERVER_ADMIN [EMAIL PROTECTED] > SERVER_NAME localhost > SERVER_PORT 80 > SERVER_PROTOCOL HTTP/1.1 > SERVER_SIGNATURE > > Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Server > at localhost Port 80 > > > > SERVER_SOFTWARE Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with > Suhosin-Patch Note that the script works well by me on Debian. > Either way I think you'll be better off in the long term with > tilecache I think tilecache is not what I need, since our application need to specify the map dimensions (it depends from the client: hand-held computer, mobile phone etc...) and with tilecache this would be not possible, does it? I think, I'll rewrite the osm.xml in a python script. Regards Tommaso
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

