Skip to content

Commit c936d03

Browse files
committedMar 17, 2012
also count points that intersects polygon bounds (fix #5163)
1 parent 9cf9881 commit c936d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/fTools/tools/doPointsInPolygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def compute(self, inPoly, inPts, inField, outPath, progressBar):
141141
for i in pointList:
142142
pointProvider.featureAtId( int( i ), inFeatB , True, allAttrs )
143143
tmpGeom = QgsGeometry( inFeatB.geometry() )
144-
if inGeom.contains(tmpGeom.asPoint()):
144+
if inGeom.intersects(tmpGeom.asPoint()):
145145
count = count + 1
146146
outFeat.setAttributeMap(atMap)
147147
outFeat.addAttribute(index, QVariant(count))

0 commit comments

Comments
 (0)
Please sign in to comment.