Singleband gray raster band rendering

The singleband gray band renderer stretches a gradient between black and white to a single raster band. Additionally, contrast enhancements are available to adjust the way the gradient is stretched across the raster band's values. Let's apply a singleband gray renderer and a contrast enhancement to the same sample raster, Gray_50M_SR_W.tif, which represents shaded relief, hypsography, and flat water for Earth.

Add Gray_50M_SR_W.tif to the QGIS canvas and open its Symbology tab from Layer Properties. As this is a singleband raster, QGIS defaults the Render type value to Singleband gray with the following parameters:

  • Gray band: Band 1 (Gray). This is the raster band that is being styled. If a multiband ...

Get Mastering Geospatial Development with QGIS 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.