osmium:tldr:20610
osmium: Filter all objects tagged as "restaurant".
$ osmium tags-filter ${path-to-input-pbf} amenity=restaurant -o ${path-to-output-pbf}
try on your machine
This command is using a tool named "osmium" to filter tags in an OpenStreetMap (OSM) PBF file.
Here is the breakdown of the command:
osmium
: Refers to the name of the tool being used.tags-filter
: Indicates that we want to filter tags in the specified OSM file.${path-to-input-pbf}
: Represents the path to the input PBF file. You need to replace${path-to-input-pbf}
with the actual path to the PBF file you want to filter.amenity=restaurant
: Specifies the filtering criteria. In this case, it filters for nodes, ways, and relations that have the tagamenity
with the valuerestaurant
. It selects only the OSM elements that represent restaurants.-o
: Denotes that the next argument is the path to the output PBF file.${path-to-output-pbf}
: Represents the path to the output PBF file. You need to replace${path-to-output-pbf}
with the actual path where you want to save the filtered PBF file.
Overall, this command is used to filter restaurants from an OSM PBF file and save the resulting filtered data to a new PBF file.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.