6

I have a vector layer of habitats. Each feature belongs to a category and has its area calculated. I'm trying to find out the total area of each type of habitat.

I've looked at QGIS "Statistics by categories" which gives everything but the Sum of each category.

The GroupStats plugin looks like it would do it, but I can't get the "calculate" button to activate.

I'm new to QGIS tools/scripts etc but happy to try to modify an existing tool but haven't yet found where they are or how to do this. If anyone can help either directly or point me in the right direction, I'd appreciate it.

8

You are correct, GroupStat plugin is exactly what you need.

See the example below. You need to drag and drop you category field into Rows, and you area field an the function sum into value.In my image, "Freguesia" is my Category, and I used the area function instead of a field.

enter image description here

The beauty of this plugin is that you can do the same with more that one category by using rows and columns.

enter image description here

  • Hi, Thank you for this detail. Went to try this again but QGIS is now giving me "bad layers" dialog, even though I've not changed anything. The "handle bad layers" dialog isn't fixing it - I need to sort this first... – user3418765 Apr 4 '14 at 20:38

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.