“QGIS provides various ways to clip a raster layer. In this worksheet we will look at one approach.”
If you have a raster that is larger than the area needed for your map or analysis, you can clip it to a smaller size using QGIS. In addition, you can 'mask' the layer using a polygon in order to assign no data values to pixels outside of your target area.
Goal: To determine the streams and catchment area for swellendam.
NB: You need the mentioned plugins
Data: SRTM
Name | Expectation |
---|---|
Fill sinks algorithm ❗ |
Fill sinks (wang and liu) |
Flow style ❗ |
d8_flow_directions.qml |
Strahler alg ❗ |
Strahler order |
Raster calc ❗ |
"strahler@1" >= 7 |
Bolean style ❗ |
strahler_bolean.qml |
Channels alg ❗ |
Channel network and drainage basins |
plugins ❗ |
Coordinate capture, geocoding |
Slope alg ❗ |
Upslope area |
Raster data contains cells which are organised into rows and columns where each cell contains values representing information. Because raster images are generally very big and contain a lot of pixels (information), it is sometimes imperative to clip them. This can be achieved by either using a shapefile as a mask layer or by specifying an extent.
When clipping a raster layer we can change the other characteristics of the output layer like no-data values, spatial resolution and adding an alpha band to the output raster.
The spatial resolution of a raster defines the smallest possible feature that can be detected. No-data values are used to represent areas of a raster that have no data or areas in the raster that you do not want to show based on the pixel values in the raster.
An alpha band acts as a transparency mask, providing a transparency value for each pixel.
DEM is an abbreviation for:❗
Which of these represents a derivative of a digital elevation model:❗
Plugins are extensions in QGIS:❗
Download the sample data for the lesson.