3

In QGIS I've got one layer showing local authority boundaries across the country (UK), and another which shows polygons of particular sites across the whole country.

Can I show the density of the sites (by number of sites) within each of the local authority boundaries? I'm sure I've done this before but I'm having to relearn and just can't seem to figure it out.

1

1 Answer 1

3

Set a categorized styling with the expression: array_length(overlay_intersects('sites', "namn1"))

Replace 'sites' with the name of your layer to count, and namn1 with the name of some attribute in your sites layer.

The expression will return the number of overlapping sites for each boundary polygon. enter image description here

1
  • 2
    Many many thanks! I'm unbelievably grateful. A whole new world has opened up... ❤️🙏
    – Pen
    Jan 19 at 13:53

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.