source: github
Introduction
QGIS offers native support for XPSWMM 2D results files, allowing you to access simulation results in their raw format without the need for conversions. This capability provides several benefits, including:
- The ability to use advanced visualization styles and animations for mesh in QGIS.
- An expanded range of options for converting results to other GIS formats.
In this article, you will learn,
- Load XPSWMM 2D results into QGIS
- Rendering maximum values in the map
- Play animation of the simulation
- Export the results to raster format
- Export the results to vector format
Load XPSWMM 2D results into QGIS
XPSWMM saves the 2d results in two files,
To load the results into QGIS,
- Load the *.2dm file into QGIS. Drag the file into QGIS.
- Load the *.xmdf into the *.2dm mesh
Rendering maximum values in the map
Max. Depth
- Select max. depth as the value to show
- Select the color ramp and make it transparent
Play animation of the simulation
- Set depth as the contours (fill), and velocity as the vector
- Set the depth style
- Set the velocity style
- Turn on the time control
- Play the animation
- You can explore more vector styles
Export the results to raster format
- Turn on the processing toolbox
- Locate the Mesh tools
Export max. water depth as raster
- Open “Rasterize mesh dataset”
- Set up the parameters for the tool
Export max. water contour lines
- Open the “Export contours” tool
- Set up the parameters
- Turn on the contour line layer
Export the results to vector format
- Open the “Export mesh vertices” tool
- Setup the parameters
Conclusion
In conclusion, working with XPSWMM 2D results in QGIS provides benefits such as advanced visualization styles, animation capabilities, and options for converting results to other GIS formats. By following the steps outlined in this article, you can easily load XPSWMM 2D results into QGIS, render maximum values on the map, play animations of the simulation, and export the results to raster or vector formats. This integration enhances the analysis and visualization capabilities for water management and flood modeling projects.