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

Is there a way to perform a reclassify of a raster image in QGIS?

In ArcGIS you can do that in Spatial analyst Tools→Reclass→Reclassify

Any ideas?

screenshot of Reclassify window

share|improve this question
The best solution I found is in this thread: – DPSSpatial Feb 25 at 20:16

Using GRASS and the r.reclass module, yes. However, you actually need to use the keyword "thru".

Example: For a raster elevation grid, to be reclassified into values based on 100m-intervals:

500 thru 599.99 = 500

600 thru 699.99 = 600

700 thru 799.99 = 700

Etc.. And you save that into a notepad text document(with no spaces between lines). Then when opening the r.reclass module, you will simply load that rulefile into the gui and away you go.

Experience: I just performed a reclassification on a DEM for my thesis project in Tajikistan over the weekend using this method and it worked a treat.

*Note(caveat): You might look into modeling this process or even using GDAL to output a *.prj file alongside the output for use in Arc, as the outputs I've seen from this thus far contain no projection definition readable by Arc. If you're sticking with QGIS, tho, then you should be good-to-go.

One more thing, as with any QGIS/GRASS/GDAL processes, ensure you have downloaded the OSGeo4W Installer which ensures you have everything up-to-date:

Hope this helps.

share|improve this answer
r.reclass only accepts integers – nickves Apr 3 '13 at 23:26

The easier way is to use GRASS (also using the QGIS/GRASS plugin) and the r.reclass module.

You will need to create a reclassification rule file, where you can use the keyword "through" or the wildcard "*" to reclassify multiple values in one rule.

share|improve this answer
Do you know what a reclass table file should look like for the GRASS tool? – DPSSpatial Feb 8 '13 at 21:36
That's great - I got it to work and it's really fast ... thanks for this! – DPSSpatial Feb 29 at 18:15

With the Advanced Interface option of the toolbox, I use the Reclassify Grid Values from the SAGA GIS, It a really intuitive tool with options of reclassification by single value, range and using a table.

I prefer this over the r.reclass because you do not have to create additional files.

share|improve this answer

The other way is using Raster Calculator. It explains in this entry

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

You link to a page that describes a workaround and states "the workaround is awful"! – whuber Jan 24 '14 at 17:49

I guess my post doesn´t aswer the question accurately, but it could maybe provide some help. I haven´t found a simple way to do this in QGIS, like Bryce I use GRASS modules. However, if have ArcGIS but no Spatial Analyst, there´s another great tool: GME ( It´s dependent on ArcGIS and R and has a multitude of really great features, one of them beeing 'reclassify'. Here, just like in GRASS, you need to create a text file containing the class definitions. I´ve used ArcMap to visualize the raster in question in different ways first to get a better idea of what the data looks like. Then I´ve defined the new classes based on that info. Its worked like a charm for me. I don´t know if GME will run on a system without ArcGIS, I´d be curious to know.

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.