Skip to content

new feature: bbox filtering for changesets #41

@Hagellach37

Description

@Hagellach37

When you want to work with regional extracts in ohsome-planet (e.g. for particular countries) and want to join changesets, there is no easy way to just work with the changesets for that particular region.

This is because OSM Changesets are currently provided only by the OSM planet server for the entire planet and history.
Regional variants or filtered versions of this file do not exist publicly.

As a work around you can use the osmium tool to filter changesets by bounding box coordinates.
Nevertheless, also this step is rather time consuming.

In fact, it would be much faster and straightforward to implement a bounding box filter directly in ohsome-planet.
This filter should import all changesets for which the bbox of the changeset intersects with the given bbox parameter value.

From the CLI perspective it could look like this:

java -jar ohsome-planet-cli/target/ohsome-planet.jar \
    changesets \
    --bz2 changesets-latest-karlsruhe-regbez.osm.bz2 \
    --changeset-db "jdbc:postgresql://localhost:5432/postgres?user=$OHSOME_PLANET_DB_USER&password=$OHSOME_PLANET_DB_PASSWORD" \
    --bbox=8.319,48.962,8.475,49.037

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions