Difference between revisions of "Tute M01 Active Areas MI Archive"
Jump to navigation
Jump to search
(→Method) |
|||
Line 11: | Line 11: | ||
[[File:Tute M01 ActiveArea MI Map Boundary.png]] | [[File:Tute M01 ActiveArea MI Map Boundary.png]] | ||
<br><br> | <br><br> | ||
− | <li> Save the 2d_code layer and export | + | <li> Save the 2d_code layer and export it. <br> |
<li> Enter the following line of text into the TGC file '''<u>after</u>''' the <font color="blue"><tt>Set Code </tt></font> <font color="red"><tt>== 0</tt></font> command and save the TGC file.<br> | <li> Enter the following line of text into the TGC file '''<u>after</u>''' the <font color="blue"><tt>Set Code </tt></font> <font color="red"><tt>== 0</tt></font> command and save the TGC file.<br> | ||
<font color="blue"><tt>Read GIS Code </tt></font> <font color="red"><tt>==</tt></font><tt> ..\model\mi\2d_code_M01_002.MIF</tt><br><br> | <font color="blue"><tt>Read GIS Code </tt></font> <font color="red"><tt>==</tt></font><tt> ..\model\mi\2d_code_M01_002.MIF</tt><br><br> |
Latest revision as of 11:34, 30 April 2025
Introduction
This page details the method for using Mapinfo to set an active model area.
Method
- Import the 2d_code_empty.mif template file from the tuflow\model\mi\empty folder, and save it as 2d_code_M01_002.TAB in the tuflow\model\mi folder.
- In the Layer Control add the 2d_code_M01_002 layer to the Map window and make it editable. If the 2d_zpt is turned on, turn this off in the Layer Control and ensure the DEM and/or aerial photo are visible.
- Open the layer boundary.tab in the Module_Data\Module_01\Mapinfo folder.
- Select the polygon in this layer, copy to the clipboard and paste into the 2d_code_M01_002 layer. The polygon should look like that shown below.
- Using the Info tool assign the Code attribute for the polygon to a value of 1 (Code 1 means set the 2D cells within the polygon to active).
- Save the 2d_code layer and export it.
- Enter the following line of text into the TGC file after the Set Code == 0 command and save the TGC file.
Read GIS Code == ..\model\mi\2d_code_M01_002.MIF
Conclusion
Mapinfo has been used to create a 2d_code_M01_002 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 here.