﻿{"id":5327,"date":"2018-05-21T21:13:48","date_gmt":"2018-05-21T19:13:48","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=5327"},"modified":"2018-10-17T12:50:44","modified_gmt":"2018-10-17T10:50:44","slug":"processing-algorithms-in-the-qgis-2-8-graphic-modeler","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/","title":{"rendered":"Processing algorithms in the QGis 2.8 Graphic Modeler"},"content":{"rendered":"<p><strong>Adding<\/strong>\u00a0<strong>Algorithms in the Graphic Modeler<\/strong><\/p>\n<p>The algorithms are added in\u00a0\u00a0\u00a0the graphical modeler in the same way as the input data. You simply select the tab\u00a0\u00a0\u00a0<strong><em>algorithms<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0instead of the tab\u00a0\u00a0\u00a0<strong><em>Inputs<\/em><\/strong>, to see the display corresponding to the panel\u00a0\u00a0\u00a0<strong><em>Toolbox of treatments<\/em><\/strong>\u00a0.<!--more--><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5329\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/alg1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg1.png?fit=630%2C396&amp;ssl=1\" data-orig-size=\"630,396\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"alg1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg1.png?fit=630%2C396&amp;ssl=1\" class=\"alignnone size-medium wp-image-5329\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg1-300x189.png?resize=300%2C189\" alt=\"\" width=\"300\" height=\"189\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg1.png?resize=300%2C189&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Once you have found the algorithm you want to add, double-click on it, or drag it to the Modeler graphic window.\u00a0In order to find the algorithm, you just research in the Processing Toolbox, typing the name in the search box at the top of the algorithm tab.<\/p>\n<p>In fact, the tab\u00a0\u00a0\u00a0<strong><em>algorithms<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0is the opened window of the toolbox in the modeler.\u00a0The display of this box has two parameters: Advanced and Simplified.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5330\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/alg2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg2.png?fit=264%2C537&amp;ssl=1\" data-orig-size=\"264,537\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"alg2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg2.png?fit=264%2C537&amp;ssl=1\" class=\"alignnone size-medium wp-image-5330\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg2-147x300.png?resize=147%2C300\" alt=\"\" width=\"147\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg2.png?resize=147%2C300&amp;ssl=1 147w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/alg2.png?w=264&amp;ssl=1 264w\" sizes=\"auto, (max-width: 147px) 100vw, 147px\" \/><\/p>\n<p>Display with advance interface<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5331\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo3.png?fit=263%2C528&amp;ssl=1\" data-orig-size=\"263,528\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo3.png?fit=263%2C528&amp;ssl=1\" class=\"alignnone size-medium wp-image-5331\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo3-149x300.png?resize=149%2C300\" alt=\"\" width=\"149\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo3.png?resize=149%2C300&amp;ssl=1 149w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo3.png?w=263&amp;ssl=1 263w\" sizes=\"auto, (max-width: 149px) 100vw, 149px\" \/><\/p>\n<p>Display with simplified interface<\/p>\n<p>The parameter of the interface that is currently used in the processing toolbox determines how the algorithms will be organized in the graphical modeler.\u00a0This parameter cannot be changed in the graphical modeler.\u00a0To change the setting, the graphical modeler must be stopped, the interface parameter must be changed in the toolbox and the graphical modeler must be restarted. Apart from that, finding algorithms follows the same approach as in the treatment toolbox: type the name or a part of the name of the desired treatment and you will have the list of available treatments.<\/p>\n<p>In the algorithms tab, there is a special category called\u00a0\u00a0\u00a0<strong><em>Modeler specific tools<\/em><\/strong>.\u00a0The three tools &#8211; Calculator, Raster Layers Limits, and Vector Layers Limits &#8211; do not appear in the toolbox.\u00a0These are tools that make sense only when used as part of the graphical modeler.<\/p>\n<p>The calculator tool is\u00a0\u00a0\u00a0the most commonly used of the three tools.\u00a0It allows you to perform arithmetic calculations on the digital outputs of other algorithms, and to insert them as input to other treatments of the same model.<\/p>\n<p>When you add the calculator to the graphics window, the info window\u00a0\u00a0\u00a0lists the\u200b\u200bavailable digital values \u200b\u200b within the model.\u00a0The window below is used to enter a calculation formula by using the letters assigned to each numerical value as variables.\u00a0For example, the formula entered\u00a0\u00a0\u00a0in the following figure\u00a0\u00a0\u00a0displays the only digital variable of our current model (the buffer distance) and calculates twice that distance (a * 2).<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5332\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo4.png?fit=630%2C389&amp;ssl=1\" data-orig-size=\"630,389\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo4.png?fit=630%2C389&amp;ssl=1\" class=\"alignnone size-medium wp-image-5332\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo4-300x185.png?resize=300%2C185\" alt=\"\" width=\"300\" height=\"185\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo4.png?resize=300%2C185&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo4.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>This output can be used as input to another algorithm of this model.<\/p>\n<p>When you add an algorithm to the graphical window of the modeler, the parameter window of the algorithm opens.\u00a0The dialog box will be very similar to the one you would have if you had launched the tool directly from the processing box:\u00a0you will have the input data, the output data and the tool parameters.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5333\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo5.png?fit=630%2C349&amp;ssl=1\" data-orig-size=\"630,349\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo5.png?fit=630%2C349&amp;ssl=1\" class=\"alignnone size-medium wp-image-5333\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo5-300x166.png?resize=300%2C166\" alt=\"\" width=\"300\" height=\"166\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo5.png?resize=300%2C166&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo5.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>However, there are some important differences since the graphical modeler is an autonomous universe of data entries.\u00a0The differences are the following:<br \/>\n\u2022 In the list of\u00a0\u00a0\u00a0<strong><em>input layers<\/em><\/strong>\u00a0\u00a0\u00a0you will be limited to those that have been added to the template.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5334\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo6-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo6-1.png?fit=630%2C462&amp;ssl=1\" data-orig-size=\"630,462\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo6-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo6-1.png?fit=630%2C462&amp;ssl=1\" class=\"alignnone size-medium wp-image-5334\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo6-1-300x220.png?resize=300%2C220\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo6-1.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo6-1.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n\u2022 The field\u00a0\u00a0\u00a0<strong><em>Exit<\/em><\/strong>\u00a0<em>\u00a0<\/em>\u00a0can be left empty if it is an intermediate result that will be used as input for another algorithm.\u00a0If the output is a layer that needs to be saved, enter the name of that layer in the text box.\u00a0When you name an output layer, you do not need to provide an output file name.\u00a0This will be done when the tool is run.\u00a0Instead, just enter the name of the layer (for example,\u00a0<em>buffer installations<\/em>).<br \/>\nIt is important to understand how the output data of an algorithm works:<\/p>\n<ul>\n<li>If they are used as intermediate data for the following algorithms, then:\u00a0\u00a0\u00a0<strong>you leave the name empty<\/strong><\/li>\n<li>If they are used by the following algorithms, you want to keep the layer produced, then:\u00a0\u00a0\u00a0<strong>you give a name<\/strong>.<\/li>\n<\/ul>\n<p>This name is not the name of the output file, it is the label that will be displayed in the model execution window when you execute it.\u00a0Remember that in the modeler, during the model creation the data is not used.\u00a0You use labels that will be replaced by the actual data only when you run the model.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5335\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo7.png?fit=630%2C463&amp;ssl=1\" data-orig-size=\"630,463\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo7.png?fit=630%2C463&amp;ssl=1\" class=\"alignnone size-medium wp-image-5335\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo7-300x220.png?resize=300%2C220\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo7.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo7.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Digital values \u200b\u200bor string parameters can be entered directly as numbers or strings, but they can also be selected from the number or string type inputs.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5336\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo8\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo8.png?fit=630%2C461&amp;ssl=1\" data-orig-size=\"630,461\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo8.png?fit=630%2C461&amp;ssl=1\" class=\"alignnone size-medium wp-image-5336\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo8-300x220.png?resize=300%2C220\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo8.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo8.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li>Fields in an attribute table (or other independent table) can be specified by typing the field name or using the Table field entry.These fields will be chosen when the model is run.<\/li>\n<li>Parent Algorithms is an additional parameter available only with tools running through the Graphical Modeler.It allows you to define the order of execution of the algorithms.Defining an algorithm as a parent forces the graphical modeler to execute the algorithm before, actually, running it.\u00a0Depending on the complexity of the model, you can have multiple branches that join or separate.\u00a0The execution order of the algorithms will be defined by QGis when run, but there is no guarantee that one algorithm will be executed before\u00a0another, EXCEPT if you use the option\u00a0\u00a0\u00a0<strong><em>Parent Algorithm<\/em><\/strong>.\u00a0<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5337\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo9\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo9.png?fit=630%2C464&amp;ssl=1\" data-orig-size=\"630,464\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo9.png?fit=630%2C464&amp;ssl=1\" class=\"alignnone size-medium wp-image-5337\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo9-300x221.png?resize=300%2C221\" alt=\"\" width=\"300\" height=\"221\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo9.png?resize=300%2C221&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo9.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>On the other hand, if you have a linear model, without branches, when you define the output of an algorithm as input for the next one, you automatically define the first algorithm as the parent of the second one.<\/p>\n<p>In our example, we will perform as a first algorithm the calculation of a buffer zone around oyster facilities.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5338\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo10.png?fit=630%2C395&amp;ssl=1\" data-orig-size=\"630,395\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo10.png?fit=630%2C395&amp;ssl=1\" class=\"alignnone size-medium wp-image-5338\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo10-300x188.png?resize=300%2C188\" alt=\"\" width=\"300\" height=\"188\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo10.png?resize=300%2C188&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo10.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nNote that instead of setting an explicit buffer distance, the buffer distance entry is used.\u00a0Also note that no output is named since this output will be considered an intermediate dataset.<\/p>\n<p>To complete our model, we will add the Clip tool in the model.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5339\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo11.png?fit=630%2C391&amp;ssl=1\" data-orig-size=\"630,391\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo11\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo11.png?fit=630%2C391&amp;ssl=1\" class=\"alignnone size-medium wp-image-5339\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo11-300x186.png?resize=300%2C186\" alt=\"\" width=\"300\" height=\"186\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo11.png?resize=300%2C186&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo11.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>We will use the following parameters:<br \/>\n\u2022 Input layer:\u00a0\u00a0\u00a0<strong><em>plots<\/em><\/strong><br \/>\n\u2022 Cutting layer: \u00ab\u00a0Buffer\u00a0\u00bb of the \u00ab\u00a0fixed distance buffer\u00a0\u00bb algorithm<br \/>\n\u2022 Output layer (OutputVector): Riparian plots<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5340\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo12\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo12.png?fit=630%2C458&amp;ssl=1\" data-orig-size=\"630,458\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo12\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo12.png?fit=630%2C458&amp;ssl=1\" class=\"alignnone size-medium wp-image-5340\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo12-300x218.png?resize=300%2C218\" alt=\"\" width=\"300\" height=\"218\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo12.png?resize=300%2C218&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo12.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The final template looks like the following screenshot.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5341\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/processing-algorithms-in-the-qgis-2-8-graphic-modeler\/algo13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo13.png?fit=630%2C396&amp;ssl=1\" data-orig-size=\"630,396\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"algo13\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo13.png?fit=630%2C396&amp;ssl=1\" class=\"alignnone size-medium wp-image-5341\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo13-300x189.png?resize=300%2C189\" alt=\"\" width=\"300\" height=\"189\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo13.png?resize=300%2C189&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2018\/05\/algo13.png?w=630&amp;ssl=1 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The connecting lines show how the elements are linked to each other in the workflow.\u00a0Inputs, outputs and algorithms are represented by boxes of different colours. The boxes of the algorithms also contain, on the left, an icon representing the library source.\u00a0In our example, both algorithms are QGIS algorithms and have the icon\u00a0<strong>Q<\/strong>\u00a0in the box of the item.<\/p>\n<p>The template is now ready to run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding\u00a0Algorithms in the Graphic Modeler The algorithms are added in\u00a0\u00a0\u00a0the graphical modeler in the same way as the input data. You simply select the tab\u00a0\u00a0\u00a0algorithms\u00a0\u00a0\u00a0instead of the tab\u00a0\u00a0\u00a0Inputs, to see the display corresponding to the panel\u00a0\u00a0\u00a0Toolbox&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1260],"tags":[],"class_list":["post-5327","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1nV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=5327"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/5327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=5327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=5327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=5327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}