0

I want to count the number of benches in cementeries in a city. I am using OSM data and tried Vector Analysis Count Points in Polygon but it does not seem to get me result. I have put Cementery as Polygon and Benches as Points and did not put weight of class field.

  • 5
    Please specify what you mean when you write "does not seem to get me result". Is there no output? Are there no changes to the output? Do you get an error message? – Erik Nov 8 at 14:14
  • There are changes in terms of new field called Numpoint and all shows yero. Is there a way of getting the amount of benches in all polygons specifically and to do it all at once or I would need to do each separately? – tji2019 Nov 8 at 16:27
  • 1
    What version of QGIS? In older versions, most tools required that all input layers be in the same projection. But in QGIS 3.4 the count points in polygons tool seems to work when the input layers are in different projections. – csk Nov 8 at 18:22
  • 2
    Make sure the polygon layer doesn't have any invalid geometry. Make sure the point layer is single points, not multipoints. – csk Nov 8 at 18:23
  • The version is 3.8 and as for invalid geometry, it does show there are a lot of points with invalid geometry. How do I fix that? – tji2019 yesterday

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.