TransWikia.com

Elevation color ramps for DEMs in QGIS

Geographic Information Systems Asked on January 24, 2021

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!

One Answer

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

Correct answer by underdark on January 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP