3

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, 2020 at 14:54
  • 2
    Ah, I found it. I need this expression: sum("area",group_by:="GEN") Dec 8, 2020 at 14:58

1 Answer 1

5

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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