5

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 May 22 '17 at 12:02
  • 1
    Maybe this answer could help. – mgri May 22 '17 at 13:37
  • Great! Question answered. – dadadingo May 22 '17 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 May 22 '17 at 18:15
7

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.

4
  • 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.
  • But how do I define a range on the table? – dadadingo May 22 '17 at 12:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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