Skip to main content
added 2 characters in body
Source Link
Taras
  • 36k
  • 7
  • 77
  • 153

Use the following QGIS expression on the polygon layer to get the number of features in layer Points'Points' with the value of the field called attribute"attribute" = A:

array_length (overlay_contains ('Points', $id, filter:=attribute='A')) 

Label generated by concatenating the above expression three times for A, B and C:   

enter image description here

Use the following QGIS expression on the polygon layer to get the number of features in layer Points with the value of the field called attribute = A:

array_length (overlay_contains ('Points', $id, filter:=attribute='A')) 

Label generated by concatenating the above expression three times for A, B and C:  enter image description here

Use the following QGIS expression on the polygon layer to get the number of features in layer 'Points' with the value of the field called "attribute" = A:

array_length(overlay_contains('Points', $id, filter:=attribute='A')) 

Label generated by concatenating the above expression three times for A, B and C: 

enter image description here

Source Link
Babel
  • 80.4k
  • 15
  • 97
  • 245

Use the following QGIS expression on the polygon layer to get the number of features in layer Points with the value of the field called attribute = A:

array_length (overlay_contains ('Points', $id, filter:=attribute='A')) 

Label generated by concatenating the above expression three times for A, B and C: enter image description here