The following commit has been merged in the master branch: commit 9151fd583b5062a4e085bba70364cd3c0a0c4885 Author: Alexander Bruy <alexander.b...@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 _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel