Book Image

QGIS By Example

By : Alexander Bruy, Daria Svidzinska
Book Image

QGIS By Example

By: Alexander Bruy, Daria Svidzinska

Overview of this book

Table of Contents (17 chapters)
QGIS By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Step 2 – combining the DEM and buildings layers


Now, we need to combine the two layers into a single layer by adding their values. Raster algebra is a common approach to overlaying a raster layer (or layers), combining their values using algebraic operations (addition, subtraction, multiplication, division, and so on), and calculating values for a new raster layer. Modern GIS software uses so-called raster calculators that help create, validate, and apply raster algebra expressions to raster datasets.

QGIS also has its own raster calculator located at Raster | Raster Calculator. The Calculator dialog window consists of the following parts:

  • Raster bands: In the top-left corner of the window, you can see the list of all rasters available in the project. The raster band number is separated from its name by an @ sign. If the layer is a single-band raster, then only name@1 appears in the list, but if it is a multiband raster, then name@1, name@2, and so on up to name@n (where n is the total number...