CmdID

CmdID / Commands

osmium

Multipurpose tool for handling OpenStreetMap (OSM) files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Show file information

osmium fileinfo path/to/input.osmIdentify

Display contents

osmium show path/to/input.osmIdentify

Convert file format from PBF into XML

osmium cat path/to/input.osm.pbf --output path/to/output.osmIdentify

Extract a geographic region by the given bounding box

osmium extract --bbox min_longitude,min_latitude,max_longitude,max_latitude path/to/input.pbf --output path/to/output.pbfIdentify

Extract a geographic region by a GeoJSON file

osmium extract --polygon path/to/polygon.geojson path/to/input.pbf --output path/to/output.pbfIdentify

Filter all objects tagged as "restaurant"

osmium tags-filter path/to/input.pbf amenity=restaurant --output path/to/output.pbfIdentify

Filter for "way" objects tagged as "highway"

osmium tags-filter path/to/input.pbf w/highway --output path/to/output.pbfIdentify

Filter "way" and "relation" objects tagged as "building"

osmium tags-filter path/to/input.pbf wr/building --output path/to/output.pbfIdentify