Tutorial M01 Define Active Area QGIS: Difference between revisions

Content deleted Content added
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 7:
<li>Click on the ‘Import Empty File’ symbol from the TUFLOW Plugin toolbar. <br>
<br>
[[File:M01 ImportEmptyImportEmpty_a.pngPNG]]<br>
<br>
<li>This opens the Dialog shown below. The TUFLOW plugin accesses the 'Empty Directory' created when the project was configured and provides a list of files to choose from. It appends the 'Empty Type' to the beginning of the 'RUN ID' and the 'Geometry Type' letter to the end. This becomes the name of the file. Make the following selections:
Line 16:
 
<br>
[[File:{{Video|name=Animation_M01_Code_01c.gif]]mp4|width=1274}}<br>
<br>
</ol>
Line 22:
<ol>
<li>Load in the '''Model_Boundary.shp''' from the '''Module_01\Tutorial_Data''' folder. Either drag and drop the .shp into QGIS or navigate to the file through Layer > Add Layer > Add Vector Layer.
<li>The region object in the '''Model_Boundary''' is not in the TUFLOW file format and needs to be copied into the '''2d_code_M01_001_R''' layer to have the correct attributes.
<li>Make the '''2d_code_M01_001_R''' layer editable by right clicking the layer and selecting 'Toggle Editing'.
<li>Select the '''Model_Boundary''' file by left clicking on it once in the Layers panel and use the 'Select Features' tool to highlight it. <br>
<li>Select 'Edit' from the top QGIS tab and 'Copy Features' from the drop down menu.
<li>Select the '''2d_code_M01_001_R''' layer in the Layers panel by left clicking on it once. Select 'Edit' from the top QGIS tab and click 'Paste Features' from the drop down menu.<br>
<br>
[[File:{{Video|name=Animation_M01_Code_02c.gif]]mp4|width=1274}}<br>
<br>
</ol>
Define the area as active:
<ol>
<li>At present the '''2d_code_M01_001_R''' is not active. Using the 'Identify Features' tool click on the '''2d_code_M01_001_R''' region in QGIS. The attribute 'Code' has a value of 'NULL'.
<li>Right clickClick on the 'NULL' value and select 'Edit Feature From', change the value to '1'. and clickClick 'OK'. <br>
<li>Toggle the editing off to save the edits.<br>
<br>
[[File:{{Video|name=Animation_M01_Code_03c.gif]]mp4|width=1274}}<br>
<br>
</ol>
Use the TUFLOW plugin for styling the code polygon layer to make it easier to work with:
<ol>
<li>Change the symbology of the '''2d_code_M01_001_R''' layer to make it easier to work with.
<li>Left click the '''2d_code_M01_001_R''' in the Layers panel to select it.
<li>Select ‘Apply TUFLOW Styles to Current Layer’.
<li>This updates the styling of the layer to display points on the region vertices and set the opacity to 25%.<br>
 
<br>
[[File:{{Video|name=Animation_M01_Code_04c.gif]]mp4|width=1274}}<br>
<br>
</ol>