2

I have a landcover-layer with an attribute of the administrative region (GEN). I am looking for an expression in the field calculator to calculate the summarized area depending on the GEN-field value.

I know I could do it with dissolve tool or with group stats, but I would like to have the GEN area sum as a field value in my attribute table.

enter image description here

2
  • Dissolve by name, calculate area, multi-to-single part, pole of inaccessibility, join attributes by location back to your original layer. – Erik Dec 8 '20 at 14:54
  • 1
    Ah, I found it. I need this expression: sum("area",group_by:="GEN") – Enzo Baldini Dec 8 '20 at 14:58
3

I just need to use that handy expression in the Field Calculator:

sum("area",group_by:="GEN")

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.