pelias / pbf2json

An OpenStreetMap pbf parser which exports json, allows you to cherry-pick tags and handles denormalizing ways and relations. Available as a standalone binary and comes with a convenient npm wrapper.

Home Page:https://pelias.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract All Tags!

rahimramezanian opened this issue · comments

Hi.
Is it possible to extract all tags from a pbf file?
in a command like this

$ ./build/pbf2json.linux-x64 -tags="ALLTAGS" /tmp/wellington_new-zealand.osm.pbf
Thanks.

this is not currently supported.

the openstreetmap database contains a lot of data. this tool was originally created in order to extract the entities useful for geocoding, so we remove things like trees, dolphins and street lights (yes those are all things).

I designed the filters to be general purpose, so other people can use it for other tasks.

Could you explain your use case? Why would you want all the tags exported and why are other tools such ogr2ogr and osmconvert don't suit your needs?

OK in this case using a list of tags similar to your config is more useful. Thanks for your response.