Skip to content

Commit

Permalink
also count points that intersects polygon bounds (fix #5163)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 15, 2012
1 parent 2c0fb43 commit 9151fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/fTools/tools/doPointsInPolygon.py
Expand Up @@ -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))
Expand Down

0 comments on commit 9151fd5

Please sign in to comment.