Skip to content

GIScience/ohsome-planet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ohsome-planet

Build Status Sonarcloud Status LICENSE status: active

The ohsome-planet tool can be used to:

  1. Transform OSM (history) PBF files into Parquet format with native GEO support.
  2. Turn an OSM changeset file (osm.bz2) into a PostgreSQL database table.
  3. Keep both datasets up-to-date by ingesting OSM planet replication files.

ohsome-planet creates the actual OSM elements geometries for nodes, ways and relations. It enriches each element with changeset data such as hastags, OSM editor or username. Additionally it is possibly to add country ISO codes to each element by providing a boundary dataset.

The output of ohsome-planet can be used to perform a wide range of geospatial analyses with tools such as DuckDB, Python GeoPandas or QGIS. Its also possible to display the data directly on a map and explore it.

Installation

Installation requires Java 21.

First, clone the repository and its submodules. Then, build it with Maven.

git clone --recurse-submodules https://github.com/GIScience/ohsome-planet.git
cd ohsome-planet
./mvnw clean package -DskipTests

Usage

To see the help page of the ohsome-planet CLI run:

java -jar ohsome-planet-cli/target/ohsome-planet.jar --help

Tutorial

This tutorial shows how to use ohsome-planet to transform OSM data containing OSM elements (node, way and relation) into an ohsome-planet dataset containing Simple Feature compliant geometries (E.g. Point, Line and Polygon) with OSM tags, user and changeset information in Parquet format.

Frequently Asked Questions (FAQ)

For a list of frequently asked questions please see this document.

Getting Started as Developer

This is a list of resources that you might want to take a look at to get a better understanding of the core concepts used for this project. In general, you should gain some understanding of the raw OSM (history) data format and know how to build geometries from nodes, ways and relations. Furthermore, knowledge about (Geo)Parquet files is useful as well.

What is the OSM PBF File Format?

What is parquet?

What is RocksDB?

  • RocksDB is a storage engine with key/value interface, where keys and values are arbitrary byte streams. It is a C++ library. It was developed at Facebook based on LevelDB and provides backwards-compatible support for LevelDB APIs.
  • https://github.com/facebook/rocksdb/wiki

How to build OSM geometries (for multipolygons)?

About

Transform OSM (history) PBF files into GeoParquet. Enrich with OSM changeset metadata and country information.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages