Request for a v.count.points grass module
|Reported by:||nikos||Owned by:|
|Keywords:||count points in areas, v.count.points.sh, v.what.vect, v.distance||Cc:|
Currently there is no dedicated grass module to return the number of points that fall inside an area. Although there is a specific function to check if points fall within an area , the task is performed indirectly using v.what.vect  (which in turn is a wrapper to v.distance) in a script (e.g. v.count.points.sh ). Indirect methods (such as the previously mentioned script) work fine but take (impractically) too long when using (very) large point and area vector maps.
Counting points is rather a common task within the framework of GIS. Therefore, it probably makes sense to have a native (faster and easy to use) grass module that returns the number of points within area(s) and optionally carry over attributes from the area to the point map (like v.what.vect) or/and vice versa. Potentially, such a module can replace completely the v.what.vect script (?).
A discussion upon the subject is to be found in the grass-dev mailing list .