Finds MAPS.ME edits that removed elements from multi value list, i.e. tags with multiple values separated by semicolon (";").
Uses changesets dump from planet.openstreetmap.org and full history extract from Geofabrik, both pre-filtered and converted to the Osmium Tool OPL Format.
To get edits by MAPS.ME, the changesets dump is filtered by the created_by
tag and later matched by changeset ID with the full history file.
Requires:
- Osmium Tool >= 1.7.0 (because of bbox for changeset-filter), tested with v1.10.0 (built from source)
- MAWK variant of AWK, as provided with Ubuntu 18.04
- https://planet.openstreetmap.org/planet/changesets-latest.osm.bz2
(-> https://planet.openstreetmap.org/planet/2019/changesets-190826.osm.bz2) - germany-internal.osh.pbf: https://osm-internal.download.geofabrik.de/europe/germany.html
(-> https://osm-internal.download.geofabrik.de/europe/germany-internal.osh.pbf)
- changesets
osmium changeset-filter --after 2016-01-01T00:00:00Z --bbox 5.864417,47.26543,15.05078,55.14777 changesets-190826.osm.bz2 -o changesets.opl grep 'created_by=MAPS.ME' changesets.opl > changesets-mapsme.opl
- full history extract (Germany)
osmium tags-filter -R -o opening_hours.osh.opl germany-internal.osh.pbf opening_hours osmium tags-filter -R -o level.osh.opl germany-internal.osh.pbf level
awk -f semicolon.awk -v include=level changesets-mapsme.opl level.osh.opl | sed -e 's/%20%/ /g' -e 's/%2c%/,/g' > level.md
awk -f semicolon.awk -v include=opening_hours changesets-mapsme.opl opening_hours.osh.opl | sed -e 's/%20%/ /g' -e 's/%2c%/,/g' > opening_hours.md