Osmium extract of planet changesets

Hi,

I would like to analyze the OSM changesets in Africa for two different years. As it seems only Index of /planet proposes changesets files, on a global scale, my idea was to:

  • first, use osmium extract to get the changesets for Africa using the Geofabrik africa.poly file
  • then, use osmium time-filter to get my years of interest

But I never got a single Ko from
osmium extract -p africa.poly -o africa_changesets.osm.bz2 --fs changesets-latest.osm.bz2 --progress

And neither with a much smaller area.
@Jochen_Topf Is osmium not designed to extract changesets? Or the changesets file is so large it requires preprocessing? Or am I totally wrong?

osmium extract only creates extracts of OSM data, not changesets. Similar osmium time-filter wil only work on full history dumps, not on changesets.

You can use osmium changeset-filter to filter changesets by bounding box and timestamp.

Oh yeah, of course! Sorry for my silly question. osmium changeset-filter works really well, thanks for providing it.

BBOX=$(./poly2bbox.sh africa.poly)
osmium changeset-filter changesets-latest.osm.bz2 \
    --bbox=$BBOX \
    --after=2019-01-01T00:00:00Z \
    --before=2019-12-31T23:59:59Z \
    --output=africa-changesets-2019.osm.bz2 \
    --progress --verbose

gave me the changesets in Africa for 2019, but without their tags (created_by, source, comment, hastags), which is what I was looking for. Is there a way to get them @Jochen_Topf ?

@Jochen_Topf my bad (again), it seems that changeset-filter handled the tags well, this is my script testing the content, which does not handle the tags’ structure well.