Install mapnik 2.3 with the python plugin
Mapnik is a python librairy that creates png images from geographical sources like OpenStreetMap data, PostGIS databases and shapefiles. The librairy is mainly used to create the different map layers used in OpenStreetMap.
Mapnik can be extended with some plugins. One of this is the “python plugin” that allows to use python as a data source.
This article explain how to install mapnik with the python plugin for ubuntu 14.04. Indeed, the use of the python plugin installed with aptitude triggers a segfault. This segfault is generated by the boost librairy. The only way to use the python plugin is to reinstall boost with a patch and then to install mapnik from scratch. This post explains the method.
Follow the instructions from http://blog.jedf.com/2012/06/installing-boost-libraries-150-on.html
/usr/local as prefix.
Install the Boost Librairy with the patch
Download and decompress the Boost Library source.
Edit the file
libs/python/src/converter/builtin_converters.cpp as described here.
must be replaced by
Then, configure and install the Boost Library.
Install mapnik 2.3
That’s it !
P.S. This article was written a few months after the installation of mapnik. So it is possible that some steps are missing. Please contact us if it is the case.