0

I'm using QGIS and I have a file of points (Coyote_Clipped). I'm trying to count the number of points in each grid cell. I ran "Count Points in Polygon" on the grid and it worked without errors, but when I look at the attribute table for the count shapefile the value is zero for all NUMPOINTS, even though there are clearly points that fall inside the grid cells. What might be happening here?

enter image description here

enter image description here

enter image description here

3
  • 1
    Do you use the same projection on both layers? Commented Dec 16, 2020 at 7:43
  • Yes, they're the same. Commented Dec 16, 2020 at 19:48
  • Did you restart QGIS (probably your machine as well) and give another try? Are you sure to have selected the right layers (grid, points)? You did not activate Selected features only by accident? If you repeat it with all this in mind: does the problem persist? Commented Dec 16, 2020 at 20:19

1 Answer 1

0

I'm having the exact same issue. No errors but the output reports values all as 0 for each polygon, even when there are datapoints in the polygon. One work around is using the info tool and hovering over each polygon. However this takes a lot of time and it would be nice to export to a table. I wonder if we need to link the polygon and data point layers together some way? But I see no way to do this in the "Count points in polygon" which clearly defines each layer in the input of the script. Both are using the same coordinate system, and points are not selected, and I tried rebooting the software, its just unable to count the data points.

2
  • 3
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. Commented Aug 24, 2024 at 21:40
  • 1
    This isn't an answer; it's a similar question to the original one. You should remove it and add it in as a comment so it won't show as answered. There are other count points in polygons tools available in Processing that you might try, most notably SAGA's and if you have it Process X plugin's. You could also run an Intersect of the points and polygons, then use a pivot table or Group Stats plugin to count the points in each polygon. Commented Oct 27 at 15:24

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.