I'm trying to generate static tiles for Great Britain with the current OSM style. I have populated my PostGIS database from a osm.pbf file from here [1]. I have Mapnik version 3.0.9 installed.

I can generate tiles using the polytiles.py script from [2] but they use the old OSM styles. The polytiles.py script only accepts xml style sheets but the new OSM styles are not xml [3].

Is there another script I can use instead of polytiles.py to do the same thing?

[1] http://download.geofabrik.de/europe/great-britain.html
[2] http://svn.openstreetmap.org/applications/rendering/mapnik
[3] https://github.com/gravitystorm/openstreetmap-carto.git


1 Answer 1


I got it working using the following steps...

  1. Install Carto with the following command... npm install carto
  2. Convert the CartoCSS-based stylesheets to XML using carto project.mml > osm.xml
  3. Pass the new osm.xml file as an argument to polytiles.py.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.