Open Chris-Robertson opened 9 years ago
I get the error below when trying to run the plugin on a polygon layer. Reproduced in 2.6.1, 2.6, 2.4.
Error does not occur when creating label layer from point or line layer.
Traceback (most recent call last): File "C:/Users/Chris/.qgis2/python/plugins\EasyCustomLabeling\EasyCustomLabeling.py", line 515, 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' Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS version: 2.6.1-Brighton Brighton, e2a51df
Hi, can you share the polygon layer triggering that? Geometry seems not interpreted correctly..
I get the error below when trying to run the plugin on a polygon layer. Reproduced in 2.6.1, 2.6, 2.4.
Error does not occur when creating label layer from point or line layer.