Fix converting from .osc to .pbf
Problem was that .pbf never had has_multiple_object_versions set to true, hence it didn't emit HistoricalInformation and didn't write Visible values in protobuf
Please let me know if this belongs here(or elsewhere in this repo) or at https://github.com/osmcode/osmium-tool/blob/583db02ac9193dfb5217f93c823a4975405338ac/src/command_cat.cpp#L160
Once that is clarified I will add tests in correct repository.
P.S: Forgot to mention how to repro this... osmium cat -o output.pbf 055.osc.gz
Thanks for the PR. I am not sure yet whether this does fit in here or has to be solved elsewhere. I am concerned about backwards compatibility. I'll need some time to look into this properly.
Sorry, this took so long. I decided that I don't want to change this, because it might break other code. Osmium will do the right thing already if you explicitly tell it to create a file with history. You can do this by calling osmium cat -o output.osh.pbf 055.osc.gz (note the osh in there) or osmium -f pbf,history=true -o output.pbf 055.osc.gz.
No worries. Thank you for showing me way how to do this with osimum.