6. Grid Roughness from Vector#

../../../_images/img31.png

This tool calculates the the spatially variable manning’s roughness from a polygon shapefile. The polygons represent roughness associated with different LandUse categories such as building, street, grass, desert brush and many others.

../../../_images/img21.png

The Plugin has 4 methods for calculating roughness. Use the Sampling Manning’s tool to access the calculator.

  1. Click the Sample Manning’s button from polygon layers.

../../../_images/img31.png

This layer requires a polygon shapefile with roughness data or digitized data assigned to the Roughness User Layer. The tool will calculate Manning’s roughness values with three different processes.

Area Weighted Average Polygon Intersection#

  1. To calculate a weighted average of manning’s polygons to grid element polygons, use the Source Layer and Intersect cell rectangle option.

../../../_images/img41.png

Centroid Point Sample#

  1. To calculate a point sample from the centroid of the grid element on the manning’s polygons, use the Source Layer and Intersect cell centroid option.

../../../_images/img51.png

Roughness Update#

  1. This option will only update cells whose centroid lies within the Roughness Layer polygons and leave all other values as is.

../../../_images/img61.png
  1. Once the sample is complete, the following window will appear. Click OK to close the window.

../../../_images/img71.png

The roughness values are assigned to the Grid layer in the Schematized Layers group.

../../../_images/img81.png
  1. If it is necessary to update or change a small selection of elements, use the Roughness layer in the User Layers group.

../../../_images/img91.png

Troubleshooting#

  1. The Roughness layer must be a polygon layer for this tool.

  2. The layer CRS must match the project CRS.

  3. The polygon geometry must be valid to process the intersection area average. Try Check Geometries if the calculation fails.

  4. If a Python error appears during the sampling process, it may indicate that attribute table is missing. Save and reload the project into QGIS and try again.

  5. This processor uses a moving window and processes data in blocks. If the process fails, rasterize the data and use the Grid Roughness from Raster method.