This is a service that's a proof of concept for getting a service that renders vector tiles into images using CartoCSS.
bin/start-renderer.sh
This requires Mapnik3.0
Install Mapnik (OSX):
brew install mapnik
Install Mapnik (Debian/Ubuntu):
sudo apt-get install python-mapnik
Install Python Dependencies:
pip install -r dev-requirements.txt
bin/start-renderer.sh --dev
Render an image to test.png
:
curl -o test.png localhost:4096/render -H 'Content-type: application/json' -d @carto_renderer/examples/main.json
The tests are run using py.test and hypothesis
bin/test.sh
bin/dockerize.sh