Skip to content

Commit

Permalink
Return zero from "points in polygons" instead of both zero/null (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 30, 2016
1 parent 6076451 commit 46d4042
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/fTools/tools/doPointsInPolygon.py
Expand Up @@ -299,6 +299,9 @@ def run(self):
value = math.sqrt(value)
atMap.append(value)

else: # no intersection - store at least the zero count
atMap.append(0)

outFeat.setAttributes(atMap)
writer.addFeature(outFeat)

Expand Down

0 comments on commit 46d4042

Please sign in to comment.