Options (3)
-o, --outputbooleanConvert file format from PBF into XML
Example:
osmium cat {{path/to/input.osm.pbf}} {{[-o|--output]}} {{path/to/output.osm}}-b, --bboxbooleanExtract a geographic region by the given [b]ounding box
Example:
osmium extract {{[-b|--bbox]}} {{min_longitude}},{{min_latitude}},{{max_longitude}},{{max_latitude}} {{path/to/input.pbf}} {{[-o|--output]}} {{path/to/output.pbf}}-p, --polygonbooleanExtract a geographic region by a GeoJSON file
Example:
osmium extract {{[-p|--polygon]}} {{path/to/polygon.geojson}} {{path/to/input.pbf}} {{[-o|--output]}} {{path/to/output.pbf}}Examples (8)
Show file information
osmium fileinfo path/to/input.osmDisplay contents
osmium show path/to/input.osmConvert file format from PBF into XML
Extract a geographic region by the given [b]ounding box
osmium extract [-b|--bbox] min_longitude,min_latitude,max_longitude,max_latitude path/to/input.pbf [-o|--output] path/to/output.pbfExtract a geographic region by a GeoJSON file
osmium extract [-p|--polygon] path/to/polygon.geojson path/to/input.pbf [-o|--output] path/to/output.pbfFilter all objects tagged as "restaurant"
osmium tags-filter path/to/input.pbf amenity=restaurant [-o|--output] path/to/output.pbfFilter for "way" objects tagged as "highway"
osmium tags-filter path/to/input.pbf w/highway [-o|--output] path/to/output.pbfFilter "way" and "relation" objects tagged as "building"
osmium tags-filter path/to/input.pbf wr/building [-o|--output] path/to/output.pbfmade by @shridhargupta | data from tldr-pages