SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
assignraingagesdialog.h File Reference
#include "core/gageblend.h"
#include <QDialog>
#include <QPointF>
#include <QPointer>
#include <QStringList>
#include <QVector>
Include dependency graph for assignraingagesdialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::AssignRainGagesDialog
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Bind rain gages to subcatchments spatially, in one undoable step.

Two methods:

Proximity — assign the gage whose Thiessen (Voronoi) cell covers the largest share of the subcatchment's area. Uses the real watershed boundary rather than a representative point, which matters as soon as a subcatchment is large relative to the gage spacing.

Interpolated — area-average natural-neighbour weights over the gage network for each subcatchment, group subcatchments whose weight vectors agree, and materialise each group as a generated gage backed by a generated series. SWMM binds exactly one gage per subcatchment, so an interpolated field cannot be expressed any other way.

Everything is computed before any mutation: the volume-conservation gate can therefore abort with nothing written. The whole assignment is one undo macro.

Complements the per-object gage field in the Properties panel and the attribute table — those set one subcatchment at a time.