Skip to content
Adam Franco edited this page May 27, 2016 · 4 revisions

Installation

Prerequisites

Python This is a Python script, therefore you need a functional Python 2.7 or later environment on your computer. See http://python.org/

Protocol Buffers The imposm.parser library (below) utilizes the "Protocol Buffers" library to read .pbf files. You will need to download and install the Protocol Buffers library. This can usually be accomplished with something like:

cd /usr/local/src/
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar xzf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
./configure
make
make check
make install

imposm.parser curvature makes use of the imposm.parser which you can find at imposm.org and installed with pip or easy_install:

pip install imposm.parser

or

easy_install imposm.parser

msgpack curvature makes use of msgpack which you can find at python.org and installed with pip or easy_install:

pip install msgpack-python

or

easy_install msgpack-python

Curvature Installation

Once your Python environment set up and the imposm.parser and msgpack-python modules are installed, just download Curvature and run one of the provided processing chains:

git clone https://github.com/adamfranco/curvature.git
cd curvature
./processing_chains/adams_default.sh -h

Running tests

You can run the unit tests for curvature by running the following from the project directory:

py.test
Clone this wiki locally