[GIS] Using custom styles with Mapnik

mapboxmapnikopenstreetmapstyle

I'm setting up a custom tile server using OpenstreetMaps and Mapnik. I've been able to successfully setup the server and serve tiles using it. I'm using the OSM-Bright style right now.

I would like to use the MapBox Streets style or a custom style built on MapBox Studio with this server. I tried uploading the custom style to the server and pointed the XML directive in renderd.conf to the project.xml in my style. I cleared the cache and restarted renderd and apache but the new style does not render. There are no errors or warnings in the log.

Is there something I might be missing or a tutorial somewhere which I can follow to do this?

Best Answer

MapBox Studio creates and edits CartoCSS style-sheets, and mapnik uses their own SLD xml styles. Here is a small info about CartoCSS https://github.com/mapbox/carto

Magic actually happened in this line:

carto project.mml > mapnik.xml

If you still can't get output form mapnik, run renderd with -f option, which will bring it in foreground and you will get some debug output.

Related Question