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 Shapefile Reader fail to handle UNDEFINED type #273

Merged
merged 4 commits into from Sep 8, 2018

Conversation

zongsizhang
Copy link
Contributor

This PR focus on solving issue #228

Why does this bug happen:
When we meet UNDEFINED shape type, I'll loop to find next shape that is of acceptable ShapeType, this loop doesn't check if there are next shape, so it will keep looping if after the UNDEFINED shape there is no more.

I've also added this shapefile into our test case.

@jiayuasu jiayuasu merged commit 3c56334 into apache:master Sep 8, 2018
jiayuasu pushed a commit that referenced this pull request Sep 9, 2018
* add condition for iterating when shape type is UNDEFINEd

* compare Shapetype instead of directly int value

* add test for UNDEFINED type

* add test case
jiayuasu pushed a commit that referenced this pull request Sep 9, 2018
* add condition for iterating when shape type is UNDEFINEd

* compare Shapetype instead of directly int value

* add test for UNDEFINED type

* add test case
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.

None yet

2 participants