-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Qgis 2.16]'NoneType' object has no attribute 'centroid' #17
Comments
Hi same here can you share the data set? I suspect invalid geometries here. Le 8 oct. 2016 2:30 PM, "GlaDal" [email protected] a écrit :
|
Hi @GlaDal , any new on that issue? |
No sorry but I can ask to my colleague who give the last formation. Bye |
Dear Mr Haubourg,
After having using your plugin during a stage several problems appear. First at all, the easiest to explain for me is this one. When I want to use the plugin (on the same data of 15 others persons, only one person had this message) Qgis returns this message :
Une erreur est survenue lors de l'éxécution du code Python:
AttributeError: 'NoneType' object has no attribute 'centroid'
Traceback (most recent call last):
File "C:/Users/formation14/.qgis2/python/plugins\EasyCustomLabeling\EasyCustomLabeling.py", line 506, in runLabel
WKTLine = 'LINESTRING('+ str(geom.centroid().asPoint().x() +0.0001) +' '+ str(geom.centroid().asPoint().y() +0.0001 ) + ' , '+ str(geom.centroid().asPoint().x())+ ' ' +str(geom.centroid().asPoint().y())+ ')'
AttributeError: 'NoneType' object has no attribute 'centroid'
Version de Python : 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
Version de QGIS : 2.16.3 Nødebo, 7d00cae
Chemin Python :
Thanks for all
The text was updated successfully, but these errors were encountered: