Last modified: 2009-07-21 20:27:17 UTC
We need to hack OSM's cgi-bin/export script (or write a new CGI script that uses mapnik so that it: * Can read a YAML config file listing valid render targets (styles) & languages E.g. the languages.yml created by http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/osm-tools/osm2pgsql-style/wikipedia-language-codes.pl?view=markup It should then read mapnik styles from a whitelist of styles/languages, I'm creating the osm.xml files with this script: http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/osm-tools/osm2pgsql-style/create-mapnik-stylesheets.pl?view=markup * Sets configurable Expire: and other appropriate HTTP Proxy-friendly headers so we can stick squid in front of it. Currently it's designed to render a new map every time it's called. * Doesn't support all those export formats We only want PNG for now I think.
I hacked this up: http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/osm-tools/cgi-bin/export?view=markup It's rendering locale-friendly maps @localhost now! I'll make it more proxy friendly later (& file a new bug for that)