OSHDB toolkit

This is a toolkit that holds plug-in-like executable tools and their background. They are not directly a cornerstone of the core but hold some interesting tools you might want to check out!

License

License

Categories

Categories

Data
GroupId

GroupId

org.heigit.bigspatialdata
ArtifactId

ArtifactId

oshdb-tool
Last Version

Last Version

0.5.11
Release Date

Release Date

Type

Type

pom
Description

Description

OSHDB toolkit
This is a toolkit that holds plug-in-like executable tools and their background. They are not directly a cornerstone of the core but hold some interesting tools you might want to check out!
Project URL

Project URL

https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/parent/oshdb-tool
Project Organization

Project Organization

HeiGIT

Download oshdb-tool

Filename Size
oshdb-tool-0.5.11.pom 903 bytes
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/org.heigit.bigspatialdata/oshdb-tool/ -->
<dependency>
    <groupId>org.heigit.bigspatialdata</groupId>
    <artifactId>oshdb-tool</artifactId>
    <version>0.5.11</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.heigit.bigspatialdata/oshdb-tool/
implementation 'org.heigit.bigspatialdata:oshdb-tool:0.5.11'
// https://jarcasting.com/artifacts/org.heigit.bigspatialdata/oshdb-tool/
implementation ("org.heigit.bigspatialdata:oshdb-tool:0.5.11")
'org.heigit.bigspatialdata:oshdb-tool:pom:0.5.11'
<dependency org="org.heigit.bigspatialdata" name="oshdb-tool" rev="0.5.11">
  <artifact name="oshdb-tool" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.heigit.bigspatialdata', module='oshdb-tool', version='0.5.11')
)
libraryDependencies += "org.heigit.bigspatialdata" % "oshdb-tool" % "0.5.11"
[org.heigit.bigspatialdata/oshdb-tool "0.5.11"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • oshpbf-parser
  • etl

OSHDB - OpenStreetMap History Data Analysis

High-performance spatio-temporal data analysis platform for OpenStreetMap full-history data. Developed by HeiGIT.

HeiGIT Logo

Build Status Maven Central DOI JavaDocs status: active LICENSE

The OSHDB allows to investigate the evolution of the amount of data and the contributions to the OpenStreetMap project. It combines easy access to the historical OSM data with high querying performance. Use cases of the OSHDB include data quality analysis, computing of aggregated data statistics and OSM data extraction.

    OSHDBDatabase oshdb = /**/;

    Integer numberOfUsersEditingHighways = OSMContributionView.on(oshdb)
        .timestamps("2007-10-07", "2009-04-09")
        .osmTag("highway")
        .map(contribution -> contribution.getContributorUserId())
        .countUniq();

    System.out.println(numberOfUsersEditingHighways);

The main functionality of the OSHDB is explained in the first steps tutorial.

OpenStreetMap History Data

OpenStreetMap contains a large variety of geographic data, differing widely in scale and feature type. OSM contains everything from single points of interests to whole country borders, from concrete things like buildings up to more abstract concepts such as turn restrictions. OSM also offers metadata about the history and the modifications that are made to the data, which can be analyzed in a multitude of ways.

Because of it's size and variety, possibilities of working with OSM history data are limited and there exists a lack of an easy-to-use analysis software. A goal of the OSHDB is to make OSM data more accessible to researchers, data journalists, community members and other interested people.

Central Concepts

The OSHDB is designed to be appropriate for a large spectrum of potential use cases and is therefore built around the following central ideas and design goals:

  • Lossless Information: The full OSM history data set should be stored and be queryable by the OSHDB, including erroneous or partially incomplete data.
  • Simple, Generic API: Writing queries with the OSHDB should be simple and intuitive, while at the same time flexible and generic to allow a wide variety of analysis queries.
  • High Performance: The OSM history data set is large and thus requires efficiency in the way the data is stored and in the way it can be accessed and processed.
  • Local and Distributed Deployment: Analysis queries should scale well from data explorations of small regions up to global studies of the complete OSM data set.

The OSHDB splits data storage and computations. It is then possible to use the MapReduce programming model to analyse the data in parallel and optionally also on distributed databases. A central idea behind this concept is to bring the code to the data.

Data Model

The OSHDB uses its own binary data format that encapsulates the OSM history data available from planet.osm.org and is optimized for efficient storage and access to the history data. In order to allow parallelized data processing, the OSHDB data model also includes a data partitioning scheme.

schematic overview of the OSHDB data model

See the data model section of the documentation for further information about the OSHDB data model.

API

The OSHDB offers a flexible, simple and intuitive application programming interface that provides helpful abstractions on top of the offered OSM data entities. It provides different views on the OSM history data that allow to either investigate the OSM data at specific points in time (as snapshots), or to investigate all contributions to the OSM data in their entirety. The OSHDB API also allows to filter the OSM data by arbitrary regions, time ranges and OSM properties such as tags, entity type, etc.

The API is based on the MapReduce programming model and offers powerful methods to aggregate and analyze the OSM history data. The OSHDB API is described in detail in the api section of the documentation.

Installation

The OSHDB is available as a pre-compiled maven library and can be incorporated easily in any maven project. If you're starting a new project, take a look at how your IDE handles maven projects (for example, here you find instructions how to create a new maven project using IntelliJ). Our first steps tutorial includes further information about how to add the OSHDB as a maven dependency to your projects.

Documentation

Examples

A few usage examples can be found in our oshdb-examples repository.

How to Cite

When using the OSHDB directly or indirectly (e.g. through the ohsome API) for a publication, please cite it using the doi:10.5281/zenodo.4146990 or a corresponding version-specific DOI found on zenodo.

For scientific papers or similar publications around the analysis of OSM history data, please consider to additionally also cite the technical paper describing the OSHDB: doi:10.1186/s40965-019-0061-3.

Publications and Presentations

See Also

Projects using the OSHDB:

Other projects analyzing OSM history data:

org.heigit.bigspatialdata

GIScience Research Group and HeiGIT

🌍 HeiGIT and GIScience at Heidelberg University are engaged in research and opensource development at the interface between geography and computational science

Versions

Version
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1