A Python library for parsing OSM streams.
Assuming Ubuntu 12.04 and an active python virtualenv:
-
Install build dependencies:
sudo apt-get install -y build-essential python-dev
-
Install lxml dependencies:
sudo apt-get install -y libxml2-dev libxslt-dev
-
Install requirements:
pip install -r requirements.txt
-
Install pyosm:
python setup.py install
There are several examples in the examples
directory.