-
Notifications
You must be signed in to change notification settings - Fork 21
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
segfault when reading features with no geometry #41
Comments
thanks. But from which branch is this? And out of curiosity, why can't you make a pull request? |
Ups sorry, I meant line 100, not 160. And I did not say it is in the IOWorker.cpp file of the master branch. For the pull request I have a permission issue: |
You don't have write permission on our code, that's normal. Create a fork of our code, modify it and the create a pull request https://help.github.com/articles/creating-a-pull-request/ |
Indeed, sorry! |
Hi,
I had an issue when trying to read some shapefiles in which some features have no geometry (feature->GetGeometryRef() returns 0). It raised a segfault in this case.
I can't make a pull request but just adding this to line 160 solves this issue:
if (!feature->GetGeometryRef()) continue;
Regards
The text was updated successfully, but these errors were encountered: