Page MenuHomePhabricator

Adapt cgi-bin/export to our needs
Closed, ResolvedPublic

Description

Author: avarab

Description:
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.


Version: unspecified
Severity: major
URL: http://svn.openstreetmap.org/sites/tile.openstreetmap.org/cgi-bin/export

Details

Reference
bz19860

Related Objects

StatusSubtypeAssignedTask
DeclinedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:39 PM
bzimport set Reference to bz19860.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

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)