Using Manning's n ESRI shape files¶
This tutorial illustrates how to use Manning's n files in ESRI shape file format to assign Manning's n values to an existing project using the QGIS interface. The procedure includes the following steps:
-
Open an existing RiverFlow2D project.
-
Load the shape files with the Manning's n polygons.
-
Import the Manning's n geometry and values to the Manning N layer.
::: shaded The files required to follow this tutorial can be extracted from the 'ExampleProjects' zip file under the 'ManningsNShapefileTutorial' folder. This zip file is downloaded separately from your installation materials. :::
Open an existing project¶
-
Open QGIS
-
On the Project menu click Open... and browse to the existing project: .
This project contains the layers of the domain contour, the Digital Elevation Model (DEM) of the river bed in raster format, an aerial photograph, and the boundary conditions layer where the inflow is located in the upper right and outflow in the lower left. The inflow boundary condition is a hydrograph with a peak discharge of 220,000 ft\(^3\)/s, and the outflow conditions is set to Free outflow. When you open the project you will have an image of the project loaded in QGIS as shown in 16.1.
Load the shape file with the Manning's n polygons¶
-
In order to load the shape file with the polygons containing the Manning's n values, click on Add Vector Layer button
of Manager layer toolbar or from the main menu Layer \(\rightarrow\) Add layer \(\rightarrow\) Add Vector Layer...
-
In tutorial folder under the base subfolder, select the 'SaltRiver_ManningsN.shp' file (Figure 16.2).
When loading the file, an image similar to the one shown in the following figure will be displayed on the screen:
Import the Manning's n geometry and values to the Manning N layer¶
To transfer spatial and attributive information from the shape file to the Manning N layer, a copy and paste operation is performed, but it must be ensured that both layers have a field or column with the same name. The procedure is as follows:
-
Check the fields name of shape file: Right-click on the SaltRiver_ManningsN layer label and in the pop-up menu select the option Open attribute table (Figure 16.4).
You can see that the shape file loaded has two fields, LUCode and N_Value, the first one with the coding of the land cover type and the second corresponds to the value of the Manning's n, in the case of the Manning N layer, it has a single field called ManningN.
-
Proceed to change the name of the field N_Value to ManningN. Close the table of attributes and right-click on the layer label. In the pop-up menu, select Properties then in window that opens select the Fields tab as shown in Figure 16.5:
-
Click on the Toggle Editing button
then change the N_Value field name by ManningN (Figure 16.6), and click on the Toggle Editing button again, and save.
-
Copy the polygons of the shape file: select the SaltRiver_ManningsN layer in the Layers Panel.
-
With the select tool
we draw a rectangle that covers the entire layer: -
Copy the spatial elements by clicking on the Copy button
of the digitization toolbar -
Paste the spatial elements in the Manning N layer: select Manning N layer of the Layers Panel and set it in edit mode by clicking on the Toggle Editing button
. -
Click on the Paste Feature button
.and a message will appear that indicates that features were successfully pasted.
-
Click on the Toggle Editing button again
.Confirm and save the changes made to the layer.
To verify the operation was successful, open the attribute table of the Manning N layer and you can see that the polygons have been copied with their Manning n values. As shown in the Figure below:
You can now remove the SaltRiver_ManningsN layer from the Layer Panel.
This concludes the Using Manning's n ESRI shape files tutorial.









