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

Crashes instantly #5

Open
ThomasDebrunner opened this issue Mar 14, 2016 · 1 comment
Open

Crashes instantly #5

ThomasDebrunner opened this issue Mar 14, 2016 · 1 comment

Comments

@ThomasDebrunner
Copy link

I tried to use the plugin, however as soon as I create a new Hull, the plugin crashes immediately with:

Traceback (most recent call last):
File "/.qgis2/python/plugins/concavehull/concavehull.py", line 709, in run
geom.extend(extract_points(feat.geometry()))
File "
/.qgis2/python/plugins/concavehull/concavehull.py", line 329, in extract_points
if geom.type() == 0:
AttributeError: 'NoneType' object has no attribute 'type'

Is my data malformatted or what could be the problem?

@detlevn
Copy link
Owner

detlevn commented Mar 14, 2016

Hi najiji,
it seems that feat.geometry() returns None instead of some geometry. What geometry types are you processing? Can it happen, that some objects have invalid or no geometry?
If this is true than it would be a good idea to use a try/except block around these statements, so the process can skip this feature and proceed with the next one. I will change this for the coming version.

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

No branches or pull requests

2 participants