Tutorial M02 001 GIS Inputs QGIS GPKG: Difference between revisions

Content deleted Content added
 
(13 intermediate revisions by 3 users not shown)
Line 1:
<span style="color:#FF0000">
<font size = 18>Page Under Construction</font>
</span>
= Introduction =
QGIS is used to create, import and view input data.<br>
Line 23 ⟶ 20:
<ol>
<li>Navigate to the '''Module_02\TUFLOW\model\gis''' folder. Save a copy of '''M01_001.gpkg''' as '''M02_001.gpkg'''.
<li>FromWithin the QGIS Browser panelPanel, right click on 'Favorites' and select 'Add a Directory...'.
<li>Navigate to the '''Module_02''' folder and select it.
</ol>
 
FromWithin the QGIS Browser Panel, navigate to the '''Module_02\Tutorial_Data''' folder. Drag and drop the following layers in tointo the '''Module_02\TUFLOW\model\gis\M02_001.gpkg''':
:*'''2d_zsh_M02_rd_crest_001_L'''
:*'''2d_zsh_M02_rd_crest_001_P'''
<ol>
 
<br>
{{Video|name=Animation_M02_GPKG_GIS_001_0.mp4|width=1279}}<br>
<br>
</spanol>
Investigate the supplied files:
<ol>
<li>Open the files, either:
<li>In the Browser Panel, double click the files from within the '''M02_001.gpkg''' to open them.
:*Within the QGIS Browser Panel, navigate to '''M02_001.gpkg''' and double click the layers, or
:*In File Explorer, drag and drop the '''M02_001.gpkg''' into the QGIS workspace and select the layers (hold Ctrl to select multiple).
<li>The 2d_zsh line layer represents the breaklines:
:*No ‘Z’ attribute is specified, the elevations are taken from the 2d_zsh point layer.
Line 39 ⟶ 42:
:*The Shape_Option of 'MAX' is specified for all breaklines. The Zpt elevations only changes when the Z shape elevation at the Zpt is higher. The purpose of the Z shape is to enforce the highest elevations along the road crest.
<br>
{{Video|name=Animation_M02_GPKG_GIS_001_01b.mp4|width=1279}}<br>
[[File:Animation_M02_GPKG_GIS_001_01a.gif]]<br>
<br>
<li>The 2d_zsh point layer is used to apply elevation to the breaklines:
:*The values in the 'Z' attribute are elevations above datum assigned to each point. The elevations are being interpolated along the breakline.
:*The points must be snapped to the vertices of the 2d_zsh line to instruct TUFLOW that these layers are linked. If no points are in the layer, the elevation on the line object is used, i.e. the elevation along the line does not vary. For more information, seerefer Table 6-8 ofto the <u>[https://downloadsdocs.tuflow.com/_archiveclassic-hpc/TUFLOWmanual/Releaseslatest/2018-03/TUFLOW%20Manual.2018-03.pdf 2018 TUFLOW Manual]</u>.
<br>
[[File:{{Video|name=Animation_M02_GPKG_GIS_001_02a.gif]]mp4|width=1279}}<br>
</ol>
<br>
Line 54 ⟶ 57:
<li>Create a new folder called '''Data_Processing''' in the '''Module_02''' folder.
<li>Use the 'Import Empty File' tool to create a new 2d_zsh layer called ‘breaklines’ as a ‘line’ type. In the Spatial Database Options, select 'All to one'. Navigate to the '''Data_Processing''' folder and create a new GeoPackage database called '''M02_Breaklines.gpkg'''. Click Save and hit 'OK'.
<li>Digitise a line using the ‘Add Line Feature’ button following the road crest. This could match the provided breaklines or be ana section of road not covered by the original breakline.
<li>Enter the following attributes and save the file:
*fid: Autogenerate
*Z: Null
*dZ: 30
Line 66 ⟶ 70:
<font color="orange"><tt>%asc_to_asc% </tt></font> <font color="black"><tt>-brkline "M02_Breaklines.gpkg >> 2d_zsh_breaklines_L" ..\TUFLOW\model\grid\DEM.tif</tt></font> <br>
<li>Save the batch file and double click it in file explorer to run the utility.
<li>The utility creates a new '''M02_Breaklines_brkline.gpkg''' that contains a points layer and updates the lines layer. These layers can be copied into '''Module_02\TUFLOW\model\gis\M02_001.gpkg''' and read into the TGC.
</ol>
<br>