[SCM] qgis branch, master, updated. a2ee769957385f4e084c5e8b6ba178a8c877d1db

Alexander Bruy alexander.bruy at gmail.com
Tue Mar 20 13:43:39 UTC 2012


The following commit has been merged in the master branch:
commit 9151fd583b5062a4e085bba70364cd3c0a0c4885
Author: Alexander Bruy <alexander.bruy at gmail.com>
Date:   Thu Mar 15 15:15:21 2012 +0200

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

diff --git a/python/plugins/fTools/tools/doPointsInPolygon.py b/python/plugins/fTools/tools/doPointsInPolygon.py
index 3e4ee3a..42e9686 100644
--- a/python/plugins/fTools/tools/doPointsInPolygon.py
+++ b/python/plugins/fTools/tools/doPointsInPolygon.py
@@ -141,7 +141,7 @@ class Dialog(QDialog, Ui_Dialog):
                 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))

-- 
The Quantum GIS in Debian project



More information about the Pkg-grass-devel mailing list