Last modified: 2009-07-21 20:27:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21860, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19860 - Adapt cgi-bin/export to our needs
Adapt cgi-bin/export to our needs
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SlippyMaps (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://svn.openstreetmap.org/sites/ti...
:
Depends on:
Blocks: 19861
  Show dependency treegraph
 
Reported: 2009-07-21 14:23 UTC by Ævar Arnfjörð Bjarmason
Modified: 2009-07-21 20:27 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ævar Arnfjörð Bjarmason 2009-07-21 14:23:37 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.
Comment 1 Ævar Arnfjörð Bjarmason 2009-07-21 20:27:17 UTC
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)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links