Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been working with some rasters and would like to know how to calculate the area occupied by one element of a raster in QGIS?

share|improve this question
What do you mean by "element"? A cell? An area of same value? – underdark Feb 19 '13 at 20:31
area with the same value :) – Nadia Feb 19 '13 at 20:39
up vote 3 down vote accepted

with 3 steps you can achieve what you want:

  1. Vectorize raster based on the values you want to calculate
  2. Open your new vector, and create a new column. Name it 'Area'.
  3. Use the field calculator to populate the column with the variable $area
share|improve this answer

I'm assuming you just need to know the area occupied by each value. You can get this value by getting the statistics per value for the raster. Specifically, you want the total number of cells with a particular value. Once you have those totals, you can just multiply them with the cell size of your raster to get the area.

share|improve this answer
Remembering that cell size is the square of the cell width...a common mistake since most GIS packages report cell width rather than cell area. – Dan Patterson Apr 9 '13 at 13:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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