Skip to content
Permalink
Browse files
also count points that intersects polygon bounds (fix #5163)
  • Loading branch information
alexbruy committed Mar 17, 2012
1 parent 9cf9881 commit c936d031ec77863c5fdef8feec9cacee4ecd143c
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 c936d03

Please sign in to comment.