Skip to content
Permalink
Browse files

Return zero from "points in polygons" instead of both zero/null (fixes

  • Loading branch information
wonder-sk committed Jun 30, 2016
1 parent 6076451 commit 46d4042147dd8946169a3b3cbbe8527358764faa
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/fTools/tools/doPointsInPolygon.py
@@ -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)

0 comments on commit 46d4042

Please sign in to comment.
You can’t perform that action at this time.