1

The legend in the TOC for a raster layer ( > 1 million cells with continuous data) in my view might look like this:
raster legend

The values go from low (above) to high (down). Is there a way to show the values in reversed order: high values on top and low values below?

1

You can use the render type Paletted/Unique values which allows you to set manually the values:

raster reversed legend order

| improve this answer | |
  • Thanks, but I forgot to mention that I'm dealing with continuous raster datasets (too many individual values to be able to set the legend manually. I'll edit my original question. – Jan Apr 18 '19 at 13:08
  • @Jan - You could save the style file as a .qml file then load this into an advanced text editor (e.g. Sublime). Inside the tag <paletteEntry> will contain your values and colours etc. If you highlight all of these, you could reverse them (in Sublime it would be from the menubar Edit > Permute Lines > Reverse). Save the style file then reapply it to the raster. – Joseph Apr 18 '19 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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