Models, like all QGIS algorithms, can be executed iteratively. Here, we will create a new QGIS model: DEMs_Clipped_to_Watersheds.model3
. We will use two inputs, a DEM covering Taos, New Mexico and a watersheds polygon layer for the area.
The elevation.tif
and watersheds.shp
sample data will be used:
Input data: watersheds and a DEM
Now create this model with a vector layer input named Watersheds and a raster layer input named DEM. Then, use Clip raster with polygon by typing it in the Processing Toolbox search area. After we open this by double clicking, useDEM
for Input field and watersheds
for Polygons field and name the Clipped region as Watershed DEM
:
The model will now look as follows:
This model uses the Clip raster with polygon tool to clip the DEM to the watersheds. There are 21 watersheds covering this area. If the model is run normally, it will clip the DEM to the extent of all the watersheds and produce one output elevation raster. However, if...