Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix converting from .osc to .pbf #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidKarlas
Copy link

@DavidKarlas DavidKarlas commented Oct 31, 2023

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

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
@joto
Copy link
Member

joto commented Nov 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants