16

I need to color a DEM that I have loaded in QGIS 2.2. I'd like the DEM colors to represent different elevations, something like:

https://dl.dropboxusercontent.com/u/26086662/color_ramp.jpg

None of the color ramps that come with QGIS are related to elevation, so can anyone point me to pre-existing ramps that I can load in to QGIS? Thanks!

26

QGIS comes with a lot of colorramps but not all are enabled by default. It's covered in the User Guide:

You can create a custom color ramp choosing New color ramp... from the color ramp drop-down menu. A dialog will prompt for the ramp type: Gradient, Random, colorBrewer, or cpt-city. The first three have options for number of steps and/or multiple stops in the color ramp. You can use the checkbox Invert option while classifying the data with a color ramp. See figure_symbology_3 for an example of custom color ramp and figure_symbology_3a for the cpt-city dialog.

enter image description here

Update for QGIS 2.18: I have not found the updated link in the documentation, but cpt-city color ramp type are available:

First add a new ramp color as shown below:

enter image description here

Then, select the cpt-city option and you will find the many predefined palettes enter image description here

  • Thank you, this answered my question. The topography ramps are hidden, and I probably wouldn't have found them without your assistance! – Stu Smith May 8 '14 at 7:40
  • 1
    Has the Color ramp dropdown menu been eliminated from QGIS 2.12? I cannot find this menu. (Using QGIS 2.12 on a Macbook Pro running OS X 10.10.5). – Catlike Nov 8 '15 at 20:26
  • 2
    @Catlike: in 2.12.3, you can get there by Settings > Style Manager > Color ramp tab > green plus symbol on right (tooltip says "add item"). – jbaums Feb 21 '16 at 5:33

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.