I'm using QGIS. I want a raster layer with 6 different colors each color representing a certain value range (e.g. -1 to 0 red, 0 to 0.2 orange).

In the layer style menu I can only approximate colors.

  • 1
    Could you edit your question to include a screenshot of the settings you used please? You could try setting the Colour interpolation option to Discrete and setting your Accuracy setting to Actual (slower).
    – Joseph
    Commented May 22, 2017 at 12:02
  • 1
    Maybe this answer could help.
    – mgri
    Commented May 22, 2017 at 13:37
  • Great! Question answered.
    – dadadingo
    Commented May 22, 2017 at 14:14
  • @dadadingo, I'm glad it worked! Since the question I linked doesn't have an accepted answer, I'll repost it here so you can accept it and help future readers.
    – mgri
    Commented May 22, 2017 at 18:15

2 Answers 2


You may apply a reclassification by right-clicking on the layer in the Layers Panel and then clicking on Properties: from the dialog that appears, go to Style and then set these parameters (you can adapt them following your specific needs):

enter image description here

Please note that in step No.5 you set Equal interval as Mode, but you only do this for the possibility of editing the number of classes (actually, you may choose a different threshold for different categories, even if the Equal interval is set).

Finally, click the Apply button for applying the changes.

Instead, if you want to create a reclassification on a new file, you may use several tools from the Processing Toolbox (as an example, the Reclassify values SAGA tool or the r.reclass GRASS module) or directly using the Raster Calculator from the Raster Menu.

  • Go to Layer Properties-->Style menu
  • Choose Render Type-->SingleBand Pseudocolor
  • In the classes' field enter 6 and press Classify
  • In the table on the left change the values and colors as needed.
  • 1
    But how do I define a range on the table?
    – dadadingo
    Commented May 22, 2017 at 12:54

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.