OpenStreetMap library for python
Python Shell
Pull request Compare This branch is 98 commits ahead of clupprich:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc multipolygon: write osm file with bounds for josm Oct 13, 2012
src/osm bbox calculation fix Dec 18, 2015
tests bbox simplified and recursion option Oct 7, 2015
tools extra class for object attributes closes GH-5 Jul 19, 2012
.gitignore
LICENCE clarifying what licence this code is under; closes GH-3 Dec 17, 2011
README
TODO.txt osmdb.py cli and http-api improved Jan 7, 2012
setup.py updated setup file Jan 17, 2015

README

python-osm
  original version by Rory McCann (http://blog.technomancy.org/)
  modified by Christoph Lupprich (http://www.stopbeingcarbon.com)
  modified and extended by Werner Hoch (http://www.h-renrew.de)
	
== DESCRIPTION

python-osm contains tools to read Open Street Map Data (*.osm).
It is splitted into several python classes:

src/pyosm.py: 
base class that contains the datamodel of osm. It parses the osm
file or data and puts every osm-object into pythonobjects.

src/multipolygon.py:
analyzes a multipolygon relation and provides a node-in-polygon check.
This class can export a polygon files for osmosis, too.

src/osmdb.py:
offers an api to read osm objects from large or large compressed osm files
like the planet.

tools/relation2gpx.py:
Exports one or more relations into a gpx file. This tool can be used to
create gpx tracks for your gps-unit or to create maps with routes.

tools/osmhistory.py:
With this tool you can get an old versions of osm-objects at a given
timestamp. (experimental, use with care)

see also: doc/index.html for more documentation.