GIS Tutorials >> Quantum GIS >> Beginner Quantum GIS Tutorials >> Single Band Raster Layer Symbology in QGIS

GIS Programming Tutorials

GIS Theoretical Tutorials

GISTutor Newsletter



GISTutor Poll

How did you hear about us?
 

GISTutor Users Online

We have 35 guests online
Single Band Raster Layer Symbology in QGIS
( 6 Votes )

In this tutorial, you will be given a sample single band raster layer and will use the pseudocolor and custom colormap options to symbolize it.  A single band raster layer means the image contains one band.

 

Pseudocolor Raster

 

Download the ArcInfo ASCII grid file (.asc extension) here and open it in QGIS using the “Add Raster Layer” button QGIS Add Raster Layer Button.

 

Right click the Raster layer and choose “Properties”.

 

Under Render as, you will notice “Single band gray” is default selected. This is because the raster contains a single band.  Under the Single band properties, the Gray band will be “Band 1” and it will be the only option because there is only 1 band.

 

For an easy and effective way to visualize your raster layer, choose “Pseudocolor” under Color map. Pseudocolor is a color ramp that ranges in color from red for high values, yellow for mid values, and blue for low values. This is often referred to as a heat map and used for hotspot mapping. Note that you can choose to “Invert color map” to flip these colors (ie. blue for high values, and red for low values).

 

You can also choose to “Use standard deviation”. This is used to only show the values of the raster layer that fall within the specified standard deviations from the mean of the layer. You should only use this option if there are outliers in your data that have a detrimental impact on the visualization. Tweak this number according to your analysis needs. In this case we will not select this option.

 

Click OK to set the symbology.

 

GQIS Raster Symbology Pseudocolor Settings

 

GQIS Pseudocolor Raster

 

To set custom colors for your raster layer, re-open the layer properties and change the Color map to “Colormap”. This will make the Colormap tab GQIS Colormap Tab available.

 

Click the Colormap tab. The first option is "Color interpolation". By selecting discrete you can classify a range of values into a single color/map class. The Linear option will create a smooth transition between colors specified in the colormap. The Exact option will only display colored cells that have the exact value specified in your map classes.

 

Below is an example of using 5 discrete classes.

 

QGIS Discrete Colormap Settings

 

The first value defines the first cutoff. I have specified this to be 220. This means any cell that has a value below 220 will use the first color. The last value defines the highest cutoff to be used in the map classes. This is usually the max value in your raster.  Below is the output from these settings.

 

QGIS Discrete Colormap Map Classes

 

Using the same map classes, but changing the Color interpolation to Linear produces the following results:

 

QGIS Raster Linear Color Interpolation

 

You can add map classes by clicking the “Add Entry” button. Double click the Value to adjust the cutoff for a particular map class. Double click a color to open the “Select Color” dialog and choose your color or provide RGB values.

 

QGIS Symbology Select Color

 

You can also classify your raster layer using the Equal Interval technique. Equal Interval is used to divide the map classes into equal sizes. The number of attribute values is divided by the number of map classes and this is used to determine the cutoff values for each entry.

 

Under “Generate new color map”, set the Number of entries to 10, the Classification mode to Equal Interval, and click the “Classify” button. You will notice 10 map classes with values and colors were auto-populated for you. Click the OK button to view the changes.

 

QGIS Raster Equal Interval Settings

 

QGIS Raster Equal Interval Map

 

If you want to use specific colors for certain pixel values, set the Color interpolation to “Exact”. This method is used to specify the colors for exact pixel values and only those values.

 

Comments  

 
-3 #3 Voyancemor 2013-06-21 16:00
Quelle belle journée les amies,

Que pensez-vous de ce site de voyance immediat : voyance immediat sur voyanceimmediat .com ?
Voici l'adresse du site, c'est une divinatrice très réputée.

Site voyance amour gratuite par chat . Plus de 625 Oeuvres uniques. L'oracle de Belline te sera démontré. Nos articles ont été écrits par des éprouvés en prévision. Ils sont à votre disposition pour une consultation de voyance proposée, 10 min gracieuses.

Avec mes salutations,
Berteline

Voici le site dont je vous parle: voyance gratuite immediate amour
Adresse complète : www.voyanceimmediat .com/

Voici trois autres pages que j'ai trouvé intéressantes :

voyance chat direct
avenir gratuit immediat
chat gratuit immediat
voyance reponse immediate
voyance gratuite et immediate
Quote
 
 
0 #2 René Inderbitzin 2013-05-13 07:09
Thanks a lot. With your help I learned to clasify a DHM raster in 10 min. I didn't learn that in 1 Semester of his....

tx
Quote
 
 
0 #1 2012-10-03 10:12
I think it should also be noted, that it is possible to use GRASS plugin to set color maps of single-band GRASS layers, and it has broader set of possibilities how to work with color maps, i.e. wide set of pre-defined color maps for specific type of layers like elevation, aspect, NDVI and general ones like blue-red, blue-green-yellow-red and so on. When a GRASS raster is opened from GRASS plugin, the Color map "Colormap" is used to display the colors defined from within GRASS tools.
Quote
 

Add comment


Security code
Refresh