Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] add information message when feature skipped
  • Loading branch information
alexbruy committed Apr 19, 2017
1 parent 1016119 commit 737906c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -102,7 +102,8 @@ def processAlgorithm(self, feedback):
else:
pointCount = int(round(value * da.measureArea(fGeom)))

if strategy == 1 and pointCount == 0:
if pointCount == 0:
feedback.pushInfo("Skip feature {} as number of points for it is 0.")
continue

index = QgsSpatialIndex()
Expand Down
Expand Up @@ -103,7 +103,8 @@ def processAlgorithm(self, feedback):
else:
pointCount = int(round(f[fieldName] * da.measureArea(fGeom)))

if strategy == 0 and pointCount == 0:
if pointCount == 0:
feedback.pushInfo("Skip feature {} as number of points for it is 0.")
continue

index = QgsSpatialIndex()
Expand Down

0 comments on commit 737906c

Please sign in to comment.