﻿{"id":8267,"date":"2019-03-11T00:20:03","date_gmt":"2019-03-10T23:20:03","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=8267"},"modified":"2019-03-11T12:03:27","modified_gmt":"2019-03-11T11:03:27","slug":"arcgis-model-builder-expanding-a-model-to-an-input-dataset","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/","title":{"rendered":"ArcGis Model Builder: Expanding a Model to an Input Dataset"},"content":{"rendered":"\n<p>There are always two psychological barriers to overcome with Model\nBuilder: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>the first one is deciding to,\nactually, use it and move from the interactive, natural working mode to ArcMap,\ni.e. to a working mode where all the workflow is performed virtually, before\nactually launching it <\/li><li>the second, when you are,\nalready, comfortable with the tool and start creating increasingly complex\nmodels, but always based on an input layer producing an output layer. And then, you think it would be nice to be able to\napply the model automatically to a whole batch of input data, and somehow you\nfind out that it is necessary to use \u00ab\u00a0iterators\u00a0\u00bb. <\/li><\/ul>\n\n\n\n<!--more-->\n\n\n\n<p>If you are facing the first barrier, keep this article in a safe place\nsince it will serve you one day, but nor right now. On the other side if you\nare facing the second barrier, we will try to overcome it together. <br>\nThere are two main types of iterators; those looking for multiple layers of\ndata and those looking for multiple entities in a single data layer. <\/p>\n\n\n\n<p>In this article we will only discuss the first type of iterators, those\nthat will look for several layers of input data. In a separate article we will discuss\nthe other iterators. \n\nWe&rsquo;ll follow the examples with ArcGis Pro \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"219\" height=\"385\" data-attachment-id=\"8268\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/111-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/111.png?fit=219%2C385&amp;ssl=1\" data-orig-size=\"219,385\" 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=\"111\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/111.png?fit=219%2C385&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/111.png?resize=219%2C385&#038;ssl=1\" alt=\"\" class=\"wp-image-8268\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/111.png?w=219&amp;ssl=1 219w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/111.png?resize=171%2C300&amp;ssl=1 171w\" sizes=\"auto, (max-width: 219px) 100vw, 219px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nbut\nit&rsquo;s the same for ArcMap. \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"388\" data-attachment-id=\"8269\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/112-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/112.png?fit=483%2C388&amp;ssl=1\" data-orig-size=\"483,388\" 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=\"112\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/112.png?fit=483%2C388&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/112.png?resize=483%2C388&#038;ssl=1\" alt=\"\" class=\"wp-image-8269\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/112.png?w=483&amp;ssl=1 483w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/112.png?resize=300%2C241&amp;ssl=1 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nLet&rsquo;s\nconsider a simple model: \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"295\" data-attachment-id=\"8270\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/113-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/113.png?fit=609%2C295&amp;ssl=1\" data-orig-size=\"609,295\" 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=\"113\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/113.png?fit=609%2C295&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/113.png?resize=609%2C295&#038;ssl=1\" alt=\"\" class=\"wp-image-8270\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/113.png?w=609&amp;ssl=1 609w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/113.png?resize=300%2C145&amp;ssl=1 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<p>It can get really complicated but, at last, you will get a (sometimes various)\nblue ellipse representing the input data, and one (or more) green ellipse\nrepresenting the output data. <\/p>\n\n\n\n<p>When we want to use the iterators, we have to focus on these two\nellipses and forget about the rest of the model. <\/p>\n\n\n\n<p><strong>First step:<\/strong> For the model to work on different batches of\ninput data, it will be necessary to choose the type of iterator. <\/p>\n\n\n\n<p><strong>Second step:<\/strong> we will set it up and format it to do exactly what\nwe want. <\/p>\n\n\n\n<p><strong>Third step:<\/strong> we must analyze what type of output we want, and\nhere there are two possibilities: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>we want a single output, a single\nfile that gathers the results of all input files <\/li><li>we want a different output for\neach input file <\/li><\/ul>\n\n\n\n<p>When the previous has been done, the problem is virtually solved. Before\nseeing the different iterators, it is important to know how to link the first\nand the last step. \n\nMost iterators have a structure of this type: &nbsp;&nbsp;\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"242\" data-attachment-id=\"8271\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/114-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/114.png?fit=630%2C242&amp;ssl=1\" data-orig-size=\"630,242\" 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=\"114\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/114.png?fit=630%2C242&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/114.png?resize=630%2C242&#038;ssl=1\" alt=\"\" class=\"wp-image-8271\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/114.png?w=630&amp;ssl=1 630w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/114.png?resize=300%2C115&amp;ssl=1 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>The iterator produces two outputs: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>the first is a data layer that\nwill fit into the model <\/li><li>the second is a\n\u00ab\u00a0textual\u00a0\u00bb variable, containing the name of the input layer. <\/li><\/ul>\n\n\n\n<p>It is this variable that we will use to customize the model output layer,\nusually by adding this name in the output layer. As each input layer has a\ndifferent name, the corresponding output layer will also have a different name.\n<\/p>\n\n\n\n<p>Last but not least: most iterators are limited in scope. They will look\nfor a data layer type in a restricted space that can be either a workspace or a\ngeodatabase (feature dataset). Before complicating the task with layers\ndistributed everywhere on your disks, please consider, if possible, to gather\nthem in a single directory or geodatabase. <\/p>\n\n\n\n<p><strong>How to decide which is the right iterator?<\/strong> <\/p>\n\n\n\n<p>To answer this question, it is, usually, just enough to set the problem\nin plain English: for example <em>\u00ab\u00a0I want to apply my model to all the\nimages of a directory\u00a0\u00bb<\/em> or <em>\u00ab\u00a0I want to apply the model to all\npolygon layers of my geodatabase \u00ab\u00a0<\/em> , etc &#8230; <\/p>\n\n\n\n<p>Let&rsquo;s look at the most frequent cases and the corresponding iterators: <\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\n  <strong>Expression\n  of the iterator<\/strong> \n  <\/td><td>\n  <strong>Iterator\n  to use<\/strong> \n  <\/td><\/tr><tr><td>\n  datasets\n  of a given type (raster, feature class, tile, &#8230;) in a directory or\n  geodatabase \n  <\/td><td>\n  Iterate\n  Datasets (Datasets) \n  <\/td><\/tr><tr><td>\n  the\n  feature classes of a given type (polygons, lines, points &#8230;) shapes of a\n  directory or feature classes of a geodatabase \n  <\/td><td>\n  Iterate\n  feature classes \n  <\/td><\/tr><tr><td>\n  the\n  files of a directory \n  <\/td><td>\n  Iterate\n  Files (files) \n  <\/td><\/tr><tr><td>\n  rasters\n  of a certain format from a directory or a geodatabase \n  <\/td><td>\n  Iterate\n  rasters (rasters) \n  <\/td><\/tr><tr><td>\n  tables\n  in a directory or geodatabase \n  <\/td><td>\n  Iterate\n  tables \n  <\/td><\/tr><tr><td>\n  the\n  sub-workspaces of a workspace (the geodatabases of a directory, &#8230;) \n  <\/td><td>\n  Iterate\n  Workspaces (workspaces) \n  <\/td><\/tr><\/tbody><\/table>\n\n\n\n<p><strong>Iterate Datasets<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"387\" height=\"441\" data-attachment-id=\"8272\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/115-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/115.png?fit=387%2C441&amp;ssl=1\" data-orig-size=\"387,441\" 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=\"115\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/115.png?fit=387%2C441&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/115.png?resize=387%2C441&#038;ssl=1\" alt=\"\" class=\"wp-image-8272\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/115.png?w=387&amp;ssl=1 387w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/115.png?resize=263%2C300&amp;ssl=1 263w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/figure>\n\n\n\n<p>You define the directory or geodatabase containing the datasets <br>\nYou can use a mask name of (with *) <br>\nYou define the type of dataset to be processed by selecting it from the list <br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The DATASET output must be connected to the first tool of the model. <br>\nThe output Name will be used for the output data (see below) <strong>Iterate feature classes<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"366\" data-attachment-id=\"8273\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/116-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/116.png?fit=390%2C366&amp;ssl=1\" data-orig-size=\"390,366\" 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=\"116\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/116.png?fit=390%2C366&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/116.png?resize=390%2C366&#038;ssl=1\" alt=\"\" class=\"wp-image-8273\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/116.png?w=390&amp;ssl=1 390w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/116.png?resize=300%2C282&amp;ssl=1 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>You define the directory or geodatabase containing the feature classes <br>\nYou can use a mask name of (with *) <br>\nYou define the type of feature classes to process by selecting it from the list\n<br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The Feature Class output must be connected to the first tool in the\nmodel. <br>\nThe output Name will be used for the output data (see below) <strong>Iterate Files<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"276\" data-attachment-id=\"8274\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/117-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/117.png?fit=390%2C276&amp;ssl=1\" data-orig-size=\"390,276\" 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=\"117\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/117.png?fit=390%2C276&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/117.png?resize=390%2C276&#038;ssl=1\" alt=\"\" class=\"wp-image-8274\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/117.png?w=390&amp;ssl=1 390w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/117.png?resize=300%2C212&amp;ssl=1 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>You define the directory containing the files <br>\nYou can use a mask name of (with *) <br>\nYou define the extension to take into account (TXT, ASC, &#8230;) <br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The FILE output must be connected to the first tool of the model. <br>\nThe output Name will be used for the output data (see below) <strong>Iterate Rasters<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"516\" data-attachment-id=\"8275\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/118-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/118.png?fit=390%2C516&amp;ssl=1\" data-orig-size=\"390,516\" 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=\"118\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/118.png?fit=390%2C516&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/118.png?resize=390%2C516&#038;ssl=1\" alt=\"\" class=\"wp-image-8275\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/118.png?w=390&amp;ssl=1 390w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/118.png?resize=227%2C300&amp;ssl=1 227w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>You define the directory or geodatabase containing the feature classes <br>\nYou can use a mask name of (with *) <br>\nYou define the type of raster to be processed by selecting it from the list <br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The RASTER output must be connected to the first tool of the model. <br>\nThe output Name will be used for the output data (see below) <strong>Iterate tables<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"381\" height=\"267\" data-attachment-id=\"8276\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/119-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/119.png?fit=381%2C267&amp;ssl=1\" data-orig-size=\"381,267\" 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=\"119\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/119.png?fit=381%2C267&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/119.png?resize=381%2C267&#038;ssl=1\" alt=\"\" class=\"wp-image-8276\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/119.png?w=381&amp;ssl=1 381w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/119.png?resize=300%2C210&amp;ssl=1 300w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/figure>\n\n\n\n<p>You define the directory or geodatabase containing the tables <br>\nYou can use a mask name of (with *) <br>\nYou define the type of table to be processed by selecting it from the list <br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The TABLE output must be connected to the first tool of the model. <br>\nThe output Name will be used for the output data (see below) <strong>Iterate Workspaces<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"288\" data-attachment-id=\"8277\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/arcgis-model-builder-expanding-a-model-to-an-input-dataset\/1110-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/1110.png?fit=390%2C288&amp;ssl=1\" data-orig-size=\"390,288\" 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=\"1110\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/1110.png?fit=390%2C288&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/1110.png?resize=390%2C288&#038;ssl=1\" alt=\"\" class=\"wp-image-8277\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/1110.png?w=390&amp;ssl=1 390w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/03\/1110.png?resize=300%2C222&amp;ssl=1 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>You define the directory containing the geodatabases or directories. <br>\nYou can use a mask name of (with *) <br>\nYou define the type of workspace to process by selecting it from the list <br>\nYou check the Recurrent box if you want to take into account also the\nsubdirectories in the directory <\/p>\n\n\n\n<p>The output WORKSPACE must be connected to the first tool of the model. <br>\nThe output Name will be used for the output data (see below) <\/p>\n\n\n\n<p><strong>Name of the resulting layer<\/strong> <\/p>\n\n\n\n<p>By opening the last tool of a model, you will always find the \u00ab\u00a0Output\u00a0\u00bb\nfield, where you will define the place and the name of the resulting layer. For\nexample: <\/p>\n\n\n\n<p><em>C: \\ Users \\ admin \\ Documents \\ ArcGIS \\ Projects\n\\ MyProject10 \\ HYDROGRAPHIE_SURFACIQUE.shp<\/em> <\/p>\n\n\n\n<p>So that, at each iteration, the resulting layer has a different name (if\nnot each consecutive output overwrites the previous one) you have to add a\nvariable element in the name. <\/p>\n\n\n\n<p>This element will be the iterator output NAME. To insert NAME into the layer\noutput name, simply insert NAME between % in the desired place of the string\nname, for example: <\/p>\n\n\n\n<p><em>C: \\ Users \\ admin \\ Documents \\ ArcGIS \\ Projects\n\\ MyProject10 \\ HYDROGRAPHIE_SURFACIQUE_% NAME% .shp<\/em> <\/p>\n\n\n\n<p>At each iteration, % NAME% will be substituted by the name of the input\nlayer. <\/p>\n\n\n\n<p>If you have held so far, you deserve to read the next article where we\nwill discuss other types of iterators that play a role in a layer features. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are always two psychological barriers to overcome with Model Builder: the first one is deciding to, actually, use it and move from the interactive, natural working mode to ArcMap, i.e. to a working mode where&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_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":"","jetpack_post_was_ever_published":false},"categories":[1260],"tags":[],"class_list":["post-8267","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-29l","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8267","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=8267"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8267\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=8267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=8267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=8267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}