I have a google protobuf file from OpenStreetMap, specifically I have the 1.4MB Liechtenstein country extract from Geofabrik. The protoc
command says it "write the raw tag/values to stdout" with the --decode_raw
option. However I keep getting this error:
$ cat liechtenstein-latest.osm.pbf | protoc --decode_raw
Failed to parse input.
I have compiled and installed the protobuf library direct from Google, version 2.6.1 which is the current one.
This file is valid, various OpenStreetMap tools that read pbf files (osm2pgsql, osmosis) can read it fine.
What could be wrong? How can I get --decode_raw
to work? Am I doing something wrong?