Table Of Contents

Previous topic

Imposm

Next topic

Tutorial

This Page

Installation

Requirements

Imposm runs with Python 2.5, 2.6 and 2.7 and is tested on Linux and Mac OS X.

Other dependencies are:

Some parts are written as a C extension and so you need to have a C/C++ compiler and the Python header files.

Imposm also requires the following Python packages:

These Python packages will be installed automatically when you install imposm with pip or easy_install (see below).

To install all requirements on Ubuntu:

sudo aptitude install build-essential python-dev protobuf-compiler \
                      libprotobuf-dev libtokyocabinet-dev python-psycopg2 \
                      libgeos-c1

Installation

Imposm is registered at the Python Package Index and you can install it with pip or easy_install.

sudo aptitude install python-pip
sudo pip install imposm

You should now be able to start Imposm:

imposm --help

virtualenv

It is recommended to install Imposm into a virtual Python environment, especially if you are also running other Python based software.

On Ubuntu:

sudo aptitude install python-virtualenv
virtualenv venv
venv/bin/pip install imposm

You can then start Imposm from directly your virtual environment:

venv/bin/imposm --help

Optional packages

Shapely Speedups

It is recommended to install the shapely_speedups package for larger imports.

Installation requires GEOS header files.

sudo aptitude install libgeos-dev
pip install https://github.com/olt/shapely_speedups/tarball/master

Imposm automatically detects the presence of that package and will use it.