Skip to content
Permalink
Browse files

also count points that intersects polygon bounds (fix #5163)

  • Loading branch information
alexbruy committed Mar 15, 2012
1 parent 2c0fb43 commit 9151fd583b5062a4e085bba70364cd3c0a0c4885
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/fTools/tools/doPointsInPolygon.py
@@ -141,7 +141,7 @@ def compute(self, inPoly, inPts, inField, outPath, progressBar):
for i in pointList:
pointProvider.featureAtId( int( i ), inFeatB , True, allAttrs )
tmpGeom = QgsGeometry( inFeatB.geometry() )
if inGeom.contains(tmpGeom.asPoint()):
if inGeom.intersects(tmpGeom.asPoint()):
count = count + 1
outFeat.setAttributeMap(atMap)
outFeat.addAttribute(index, QVariant(count))

0 comments on commit 9151fd5

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