Algorithms are added to the graphical modeler in the same way as inputs. Find the algorithm from the Algorithms tab, and either double-click on it or drag it onto the modeler canvas. You can search for tools as you would in the Processing Toolbox. Type the name into the search box at the top of the Algorithms tab:
Here we see the Algorithms tab with buffer
being used as the search term.
In the Algorithms tab, there is a special category named Modeler-only tools. The three tools—Calculator, Raster layer bounds, and Vector layer bounds—do not appear in the Processing Toolbox. They are tools that only make sense when they are used in the context of the graphical modeler:
The Calculator tool is perhaps the most commonly used of the three tools. It allows you to perform arithmetic calculations on numeric outputs from other algorithms. For example, if you use one of the statistical output tools such as Raster layer statistics in your model or if you have numeric inputs, the associated numeric values will be available to the Calculator algorithm. The calculator lists the available numeric values within the model. They are labeled from a
to x
with the description to the right. Below this is a text box for entering a formula. For example, the formula given in the following screenshot divides the Canopy density value by the Owl Habitat Acres value and multiplies the result with the standard deviation from the Raster layer statistics algorithm. The output from the Calculator algorithm can be fed into other algorithms.
The algorithm dialog will look very similar to how it would if you were running it from the Processing Toolbox. There are inputs, tool parameters, and outputs. However, there are some important differences because the graphical modeler is a self-contained universe of data inputs. The differences are as follows:
stream buffer
).Number
or String
type.Buffer distance
input is being used. Also, note that no output is named since this output will be considered as an intermediate dataset:Next, we'll add the Clip
tool to the model using the following parameters:
Riparian Trees
under Clipped<OutputVector>OK
The completed tool dialog is shown here:
The final model looks like the following screenshot. The connecting lines show how elements are connected in the workflow. The input, output, and algorithm elements have different-colored boxes so that they can be distinguished. The algorithm boxes will also include an icon representing the source library. For example, the Fixed distance buffer and Clip tools are QGIS algorithms and have the Q icon within the element box: