esy-osmfilter

esy-osmfilter is a Python library to read and filter OpenStreetMap data files in the Protocol Buffers (PBF) format and export them to a Python dictionary and/or JSON file.

The OpenStreetMap PBF format defines three primary data types:

  • Node: An annotated point on Earth

  • Way: An list of Node items forming a path or polygon

  • Relation: A set of related entries

This library relies on the esy.osm.pbf library in order to read the pbf-files.

Features

What it provides:

  • A pythonic way to work with .pbf data file entries

  • An efficent way to filter OpenStreetMap data with Python

  • customisable filters

  • improved preformance by - parallization of the filtering process - storage and reuse of (intermediate) results with PICKLE and JSON

What it doesn’t provide:

  • A mechanism to spatially query OpenStreetMap entries.

  • Visualization of OpenStreetMap data.

Installation

esy-osmfilter depends on a Python version of 3.5 or above as well as on the Google Protocol Buffers. Use pip to install esy-osmfilter:

$ pip install esy-osmfilter

License

esy-osmfilter is licensed under the GNU General Public License version 3.0.

The Team

esy-osmfilter is developed at the DLR Institute of Networked Energy Systems in the departement for Energy Systems Analysis (ESY).