![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Unit & provenance metadata written as ;; header comments.
More...
#include <inpmeshwriter.h>
Public Member Functions | |
| UnitInfo () | |
Public Attributes | |
| QString | linearUnitName |
Goes into ;; UNITS: (e.g. "metre", "US survey foot", "SI (m)"). | |
| QString | sourceCrsTag |
Goes into ;; SOURCE_CRS: (e.g. "EPSG:2249"). | |
Unit & provenance metadata written as ;; header comments.
The writer does NOT perform any unit conversion — values are written in whatever unit the caller's mesh already carries (the project CRS linear unit, by convention aligned with the SWMM FLOW_UNITS). The metadata is purely descriptive so the reader / engine can branch on it.
Engine contract (today): [2D_VERTICES] XY is in the project's length unit (feet for US flow units, metres otherwise). Engine multiplies by 0.3048 in SurfaceRouter2D::initialize when the project is US. When the file declares ;; UNITS: SI (m) and the engine has been updated to honour it, the engine skips that multiplication.
|
default |
| QString mesh::InpMeshWriter::UnitInfo::linearUnitName |
Goes into ;; UNITS: (e.g. "metre", "US survey foot", "SI (m)").
| QString mesh::InpMeshWriter::UnitInfo::sourceCrsTag |
Goes into ;; SOURCE_CRS: (e.g. "EPSG:2249").