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

Add an semi-invalid fixture with repeated geometry fields #25

Merged
merged 2 commits into from
Sep 15, 2017

Conversation

springmeyer
Copy link
Contributor

This fixture incorrectly encodes two geometry fields. So instead of one field of 4 with repeated values in a packed array, it adds two packed arrays with the same field id of 4. I've marked this as recoverable since I figure a decoder could skip or otherwise take the first or last in this scenario.

Note: based on the way pbf/compile works it looks like it encodes the first geometry field into the packaged data for both fields. Which is odd, but sufficient I think for an invalid fixture. It means that decoders may silently take the second field value (the second will win).

@springmeyer springmeyer changed the title Add an invalid fixture with repeated geometry fields Add an sem-invalid fixture with repeated geometry fields Sep 12, 2017
@springmeyer springmeyer changed the title Add an sem-invalid fixture with repeated geometry fields Add an semi-invalid fixture with repeated geometry fields Sep 12, 2017
@mapsam
Copy link
Contributor

mapsam commented Sep 15, 2017

Thank you @springmeyer! I'm updating the base of this PR to point to core-tech-fixtures.

@mapsam mapsam changed the base branch from master to core-tech-fixtures September 15, 2017 16:21
@mapsam mapsam merged commit 35a3068 into core-tech-fixtures Sep 15, 2017
@mapsam mapsam deleted the dane branch September 15, 2017 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants