[OSM-dev] Improvement of tile rendering
Stefan de Konink
stefan at konink.de
Tue Mar 17 17:35:18 GMT 2009
Udo Giacomozzi wrote:
> I just set up my own Mapnik server that renders map tiles on demand
> and saves them on disk so that they are efficiently cached. Currently
> this is done using a PHP script (FastCGI handler with 5 instances)
> that handles 404 errors and invokes a python script to render the
> tile which then gets stored at the location that caused the 404 error.
> Invoking python from PHP is suboptimal, I know, but I'm no Python
> programmer, PHP lacks Mapnik support and so far this was only a proof
> of concept.
I have set this up completely inside a webserver. Cherokee, no php, just
the python script that renders the thing on demand. Runs in production
for months now.
vserver!10!directory_index = index.html
vserver!10!document_root = /home/rullzer/tiles
vserver!10!domain!1 = tile.openstreetmap.nl
vserver!10!error_handler = error_redir
vserver!10!error_handler!404!show = 0
vserver!10!error_handler!404!url = /live/render.py
vserver!10!keepalive = 1
vserver!10!nick = default
vserver!10!rule!300!document_root = /home/rullzer/cgi-bin/
vserver!10!rule!300!encoder!deflate = 0
vserver!10!rule!300!encoder!gzip = 0
vserver!10!rule!300!handler = cgi
vserver!10!rule!300!handler!change_user = 1
vserver!10!rule!300!handler!check_file = 1
vserver!10!rule!300!handler!error_handler = 1
vserver!10!rule!300!handler!pass_req_headers = 0
vserver!10!rule!300!handler!xsendfile = 1
vserver!10!rule!300!match = directory
vserver!10!rule!300!match!directory = /live
vserver!10!rule!300!match!final = 1
vserver!10!rule!300!only_secure = 0
vserver!10!rule!100!encoder!deflate = 0
vserver!10!rule!100!encoder!gzip = 0
vserver!10!rule!100!expiration = time
vserver!10!rule!100!expiration!time = 1w
vserver!10!rule!100!handler = common
vserver!10!rule!100!handler!allow_dirlist = 0
vserver!10!rule!100!handler!allow_pathinfo = 0
vserver!10!rule!100!handler!date = 1
vserver!10!rule!100!handler!group = 0
vserver!10!rule!100!handler!iocache = 0
vserver!10!rule!100!handler!size = 1
vserver!10!rule!100!handler!symlinks = 1
vserver!10!rule!100!handler!theme = plain
vserver!10!rule!100!handler!user = 0
vserver!10!rule!100!match = default
vserver!10!rule!100!match!final = 1
vserver!10!rule!100!only_secure = 0
Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: render.py
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090317/f73e9097/attachment.ksh>
More information about the dev
mailing list