Fix Stream Networks at Road Crossings with QGIS

3 min read 26 days ago
Published on Jan 28, 2026 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial demonstrates how to modify Digital Elevation Models (DEMs) in QGIS to accurately represent stream networks at road crossings, particularly accounting for culverts. Understanding how to adjust these models is crucial for hydrological studies and ensuring that stream flow is represented correctly in geographic analyses.

Step 1: Preparing Your Data

  • Gather Required Data:

    • Obtain a Digital Elevation Model (DEM) for your area of interest.
    • Collect data on existing stream networks and culverts.
  • Load Data into QGIS:

    • Open QGIS and create a new project.
    • Import the DEM and vector layers for streams and culverts.
  • Check Coordinate Reference System:

    • Ensure all layers are in the same coordinate reference system (CRS) for proper alignment.

Step 2: Identifying Culvert Locations

  • Visual Inspection:

    • Use the map view to locate various road crossings where culverts exist.
  • Attribute Data Review:

    • Check attribute tables of your culvert data to confirm locations and attributes.

Step 3: Editing the DEM

  • Use the Raster Calculator:

    • Open the Raster Calculator from the toolbar.
    • To modify the DEM based on culvert elevations, input a formula. For example:
      "DEM" - ("Culvert" * 0.01)
      
    • This operation lowers the DEM at the culvert locations to reflect their actual elevation.
  • Save the Edited DEM:

    • Export the modified DEM layer for further analysis.

Step 4: Adjusting Stream Networks

  • Re-evaluate Stream Flow Direction:

    • Analyze the modified DEM to ensure that stream flow direction is now accurate.
  • Use Flow Direction Tool:

    • Access the Flow Direction tool from the Processing Toolbox.
    • Input your modified DEM and run the analysis to generate a new flow direction layer.

Step 5: Validating Changes

  • Visual Validation:

    • Inspect the newly created flow direction layer against the original streams and culverts.
  • Conduct a Hydrological Analysis:

    • Perform a hydrological analysis to verify that the streams are flowing as expected through the culverts.

Conclusion

In this tutorial, you learned how to modify a DEM in QGIS to account for culverts, ensuring a more accurate representation of stream networks at road crossings. Key steps included preparing your data, editing the DEM, adjusting stream flow, and validating your changes. As a next step, consider performing further hydrological modeling to assess the impacts of these modifications on local water flow patterns. For more detailed information, explore additional resources on hydrology and QGIS functionalities.