Multipurpose tool for handling OpenStreetMap (OSM) files. More information: https://osmcode.org/osmium-tool/manual.…
Multipurpose tool for handling OpenStreetMap (OSM) files. More information: https://osmcode.org/osmium-tool/manual.
osmium fileinfo {{path/to/input.osm}}
osmium show {{path/to/input.osm}}
osmium cat {{path/to/input.osm.pbf}} -o {{path/to/output.osm}}
osmium extract -b {{min_longitude}},{{min_latitude}},{{max_longitude}},{{max_latitude}} {{path/to/input.pbf}} -o {{path/to/output.pbf}}
osmium extract -p {{path/to/polygon.geojson}} {{path/to/input.pbf}} -o {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} amenity=restaurant -o {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} w/highway -o {{path/to/output.pbf}}
osmium tags-filter {{path/to/input.pbf}} wr/building -o {{path/to/output.pbf}}