Skip to content

Parse and transform OpenStreetMap XML data, in pure python

License

Notifications You must be signed in to change notification settings

MatthewDaws/OSMDigest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

OSMDigest

Some simple utilties for reading and processing raw Open Street Map download data, using pure python. Mostly for my own interest (I try to stick to the Python standard library), but also with the hope this is of use to other people.

At the time of writing, OSM data cannot easily be read into, say, geopandas. There is good support for dealing with OSM data in C++ or Java, for example, and for serious processing, the size of the datasets suggests that this is the way to go. Sticking with Python, other options are:

  • osmread which is also a Python project (using lxml); can also read PBF files (slowly).
  • osmnx which looks to be a very nice library for downloading small subsets of data directly from the Overpass API. Currently mainly aimed at network analysis of road networks.

Usage

Currently under active development. See notebooks for some Jupyter notebooks demoing features.

Supports

Currently only supports Python 3.5+. This is due to small API changes only (e.g. xml.sax.parseString requires a bytes object before 3.5; older versions of pytest do not support approx).

About

Parse and transform OpenStreetMap XML data, in pure python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published