pondrejk / PolygonComplexity

Plugin for QGIS 2.0 that calculates the complexity of polygon features.
14 stars 1 forks source link

ZeroDivisionError #1

Open r-scotti opened 8 years ago

r-scotti commented 8 years ago

The plugin stops execution leaving the layer in editing mode and throwing the following message


An error has occurred while executing Python code:

ZeroDivisionError: float division by zero Traceback (most recent call last): File "/home/rs/.qgis2/python/plugins/PolygonComplexity/PolygonComplexity.py", line 239, in run feature_notches_normalized = float(feature_notches) / (feature_vertices - 3) ZeroDivisionError: float division by zero