<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tuflow.com/w/index.php?action=history&amp;feed=atom&amp;title=Tute_M01_Active_Areas_ArcTUFLOW_Archive</id>
	<title>Tute M01 Active Areas ArcTUFLOW Archive - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tuflow.com/w/index.php?action=history&amp;feed=atom&amp;title=Tute_M01_Active_Areas_ArcTUFLOW_Archive"/>
	<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M01_Active_Areas_ArcTUFLOW_Archive&amp;action=history"/>
	<updated>2026-04-29T00:29:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=Tute_M01_Active_Areas_ArcTUFLOW_Archive&amp;diff=36564&amp;oldid=prev</id>
		<title>Pavlina Monhartova: Created page with &quot;== Introduction == This page details the method for using ArcMap to set an active model area.  This page uses the ArcTUFLOW toolbox.  Please see Tute_M01_Active_Areas_Arc |...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M01_Active_Areas_ArcTUFLOW_Archive&amp;diff=36564&amp;oldid=prev"/>
		<updated>2024-01-04T04:03:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Introduction == This page details the method for using ArcMap to set an active model area.  This page uses the ArcTUFLOW toolbox.  Please see Tute_M01_Active_Areas_Arc |...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
This page details the method for using ArcMap to set an active model area.  This page uses the ArcTUFLOW toolbox.  Please see [[Tute_M01_Active_Areas_Arc | Active Areas Arc (old)]] if not using the toolbox.  For more information on the toolbox, please see [[ArcGis_Tips#arcTUFLOW_Toolbox | ArcTUFLOW toolbox]].&lt;br /&gt;
&lt;br /&gt;
== Method ==&lt;br /&gt;
When working with GIS layers for TUFLOW we will typically work from the template (empty) GIS files created in the previous step.  These files have the correct data attributes for TUFLOW and projection for the project.  In order to use a template layer, we will make a copy of the template (from the TUFLOW\model\gis\empty\ folder and move the file into the TUFLOW\model\gis\ folder.  The easiest way to do this is to use the ArcTUFLOW toolbox &amp;#039;&amp;#039;&amp;#039;Import Empty (template) TUFLOW files&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt; Load the [[TUFLOW_ArcGIS_Toolbox | TUFLOW ArcGIS Toolbox]].&lt;br /&gt;
&amp;lt;li&amp;gt; [[ArcTUFLOW_Configure_TUFLOW | Configure TUFLOW ArcGIS Toolbox]] the for the project.&lt;br /&gt;
&amp;lt;li&amp;gt; Open the &amp;#039;&amp;#039;&amp;#039;Import Empty (template) TUFLOW files&amp;#039;&amp;#039;&amp;#039; tool from the toolbox.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Import Empty.jpg]]&lt;br /&gt;
&amp;lt;li&amp;gt;At the dialogue, set the following:&lt;br /&gt;
:*Tick the &amp;#039;&amp;#039;&amp;#039;Polygons&amp;#039;&amp;#039;&amp;#039; check box.  The active area will be defined by a polygon (not points or lines).&lt;br /&gt;
:*In the empty shapefile section, select the &amp;#039;&amp;#039;&amp;#039;2d_code&amp;#039;&amp;#039;&amp;#039; layer.&lt;br /&gt;
:*Set the prefix (Run ID) to &amp;#039;&amp;#039;&amp;#039;M01_002&amp;#039;&amp;#039;&amp;#039;.  When the new file is created, this will be included in the filename.&lt;br /&gt;
:*The &amp;#039;&amp;#039;&amp;#039;Empty TUFLOW folder&amp;#039;&amp;#039;&amp;#039; section should already be filled out. If this is not the case the [[Tute_Arc_M01_Create_Project_ArcTUFLOW | TUFLOW project needs to be configured]].&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Code01.jpg|500px]]&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool has been run, the new file should be created and available in the layer control.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Code02.jpg|500px]]&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &amp;#039;&amp;#039;&amp;#039;Boundary_region.shp&amp;#039;&amp;#039;&amp;#039; file from the &amp;#039;&amp;#039;&amp;#039;Module_Data\Module_01\Arc\&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Editor toolbar, select &amp;#039;&amp;#039;Start Editing&amp;#039;&amp;#039; for the Editor drop down menu&lt;br /&gt;
&amp;lt;li&amp;gt;Select the source to edit the &amp;#039;&amp;#039;&amp;#039;2d_code_M01_002_R&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 Arc Code 03.png|frame|none]]&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure the Editor Tool is selected.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Code04.jpg|600px]]&lt;br /&gt;
&amp;lt;li&amp;gt;Select the polygon in the &amp;#039;&amp;#039;&amp;#039;Boundary_Region&amp;#039;&amp;#039;&amp;#039; layer and copy and paste this into the editable &amp;#039;&amp;#039;&amp;#039;2d_code_M01_002_R&amp;#039;&amp;#039;&amp;#039;. This can be done using the right click menus or Control + C and Control + V.  When prompted, choose the 2d_code_M01_002_R as the target layer.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Code05.jpg]]&lt;br /&gt;
&amp;lt;li&amp;gt;Right click on the polygon and select attributes.  Set the &amp;quot;Code&amp;quot; attribute to 1. This will set the TUFLOW model to be active within this area.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 ArcTUFLOW Code06.jpg|600px]]&lt;br /&gt;
&amp;lt;li&amp;gt;In the Editor toolbar, select &amp;#039;&amp;#039;Stop Editing&amp;#039;&amp;#039; from the Editor drop down menu. When prompted select &amp;quot;Save Edits&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M01 Arc Save Edits.png|frame|none]]&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following line of text into the TGC file &amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;after&amp;lt;/u&amp;gt;&amp;#039;&amp;#039;&amp;#039; the &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Set Code &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== 0&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; command and save the TGC file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read GIS Code &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;==&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;tt&amp;gt; ..\model\gis\2d_code_M01_002_R.SHP&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
ArcMap has been used to create a 2d_code layer which sets the code value for cells inside the boundary polygon to active (code = 1).  Please return to the tutorial model module 1 page &amp;lt;u&amp;gt;[[Module1_test#Discussion_on_Command_Order|here]]&amp;lt;/u&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Pavlina Monhartova</name></author>
	</entry>
</feed>