Skip to content
Permalink
Browse files
[processing] prevent division by zero in random points in polygons fixed
  • Loading branch information
alexbruy committed Apr 19, 2017
1 parent 3b5b191 commit 101611946801278b60d0224d2353f69ef10e5077
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py
@@ -102,6 +102,9 @@ def processAlgorithm(self, feedback):
else:
pointCount = int(round(value * da.measureArea(fGeom)))

if strategy == 1 and pointCount == 0:
continue

index = QgsSpatialIndex()
points = dict()

0 comments on commit 1016119

Please sign in to comment.