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 want to extract certain values of a raster image in order to create a new raster which then should only contain the extracted/chosen values.

How to do this in QGIS?

share|improve this question
I think how you would do this will depend on what exactly you wish to do. If say you had a one-band raster with pixel values between 0 and 1000 you might want to select pixels with values between (say) 495 and 600 or pixels with values between 300 and 450, or both. Or you might wish to select all of the pixels above a certain value or select all of the pixels below a certain value, or both. Can you provide a bit more detail? N. – nhopton Feb 2 '13 at 9:11
I'm having a self created raster image containing pixel of 11 differnt values. What I want to do is to extract for example all pixel with value 3 to a new raster image. The new raster image then should have only the value 3 pixel. – Peter QGis Feb 5 '13 at 16:42
See my answer, below. N. – nhopton Feb 5 '13 at 19:42

Okay. Load the raster and start the raster calculator. Set an output filename then in the "Raster calculator expression" text box type:

filename@1 = 3

Where "filename" is the name shown under "Raster bands". Then press OK. That's it!

See also:


share|improve this answer
Thanks a lot :-) – Peter QGis Feb 5 '13 at 20:16

QGIS has a Raster Calculator that can calculate specific raster bands using mathematical expressions and save that to specific GDAL enabled formats, such as GeoTIFF, Erdas Imagine, etc.
There are a number of additional QGIS plugins as well.
see QGIS can be built with GRASS which has raster functionality

You didn't ask about this, but you might want to consider other remote sensing software such as Optics [FOSS]--

And these industry standard Products of course: Erdas Imagine and the exceptional ESRI Raster capabilities.

share|improve this answer
Ok, thanks so far – Peter QGis Feb 1 '13 at 19:29

Identify Polygons on raster image

This was a similar question. I was looking to take certain parts of the raster out (in my case buildings) and create polygons...but you create a raster first. or create the polygons and then convert to raster.

share|improve this answer

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.