1

After having installed the plugin - Cartographic Line Generalization - I try to open the tool in the Plugins menu and receive the following error:

AttributeError: 'NoneType' object has no attribute 'wkbSize' 
Traceback (most recent call last):
  File "/Users/alexander/.qgis2/python/plugins/CartoLineGen-master/cartolinegen.py", line 245, in count_vertices
    count = sum([feature.geometry().wkbSize() for feature in feat])/16
AttributeError: 'NoneType' object has no attribute 'wkbSize'

There is one geojson line layer in the layer table when this happens - what could be the issue ?

  • I suspect you have some null / empty / invalid geometries. QGIS might load this geojson file, but plugins can be less forgiving... – Steven Kay Jun 28 '17 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.