Tute M01 Active Areas MI

From Tuflow
Jump to: navigation, search


This page details the method for using Mapinfo to set an active model area.


  1. 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.
  2. 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.
  3. Open the layer boundary.tab in the Module_Data\Module_01\Mapinfo folder.
  4. 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.
  5. 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).
    Tute M01 ActiveArea MI Map Boundary.png

  6. Save the 2d_code layer and export in MID/MIF format.
  7. 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


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.