mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
160 stars 91 forks source link

Prebuild bindings - general build requirements #142

Closed Klaus-Tockloth closed 7 years ago

Klaus-Tockloth commented 7 years ago

What's my aim? I want to build large OSM carto styled maps (PDF and SVG) with the python utility Nik4 (on Ubuntu 16.04 LTS / AMD64). This requires (my understanding) two things:

  1. python-mapnik bindings (for mapnik 3.x)
  2. cairo and pycairo

Is the list of requirements complete? Which versions of cairo and pycairo are required? Are there prebuild python-mapnik bindings available?

If I have to build the python-mapnik bindings by myself I have to:

  1. build mapnik 3.x and install it
  2. build the python-mapnik bindings with this project

Is that right?

Klaus-Tockloth commented 7 years ago

This work for me (but currently only for PNGs):

sudo apt-get install libmapnik3.0 libmapnik-dev mapnik-utils python-mapnik

Concerning the missing pycairo support I have opened issue #3657