I've classified an elevation raster into 4 classes. Is there a way to export these class values (0, 1, 2, 3) to a separate raster? I've tried exporting the raster to file, but this just gives the same elevation values.

In other words, I want to replace the pixel values in my DEM with their class values.

  • 1
    This is what the Con (Spatial Analyst) tool was designed for.
    – Aaron
    Aug 13, 2014 at 18:17

1 Answer 1


Answered as How to perform Raster Reclassification in QGIS? indirectly, but I found it can be done either using the Con (Spatial Analyst) tool (@Aaron), or better using the Reclassify (Spatial Analyst) tool.

The "Classify..." button provides the same functionality as in the Layer Symbology dialogue box.

Reclassify creates a new raster based on the classification and Class Values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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