![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QString>#include <openswmm/engine/openswmm_engine.h>Go to the source code of this file.
Classes | |
| struct | CRSReproject::Stats |
Namespaces | |
| namespace | CRSReproject |
Functions | |
| bool | CRSReproject::reprojectModel (SWMM_Engine engine, const SpatialReferenceSystem &oldSRS, const SpatialReferenceSystem &newSRS, Stats *stats=nullptr, QString *errorOut=nullptr) |
Transform every coordinate in the model from oldSRS to newSRS. | |
| void | CRSReproject::transformPointsInPlace (OGRCoordinateTransformation *ct, double *xs, double *ys, int n) |
Transform n interleaved scene points in place, in chunks. | |
Variables | |
| constexpr int | CRSReproject::kTransformChunk = 65536 |
| Number of points pushed through OGR per batched call. | |
Phase 0.7 — coordinate reprojection of an open SWMM model.
Iterates every node, link vertex chain, and subcatchment polygon and rewrites the stored coordinates via OGR. Sets the model's CRS string to the new authority. The caller is expected to mark the project dirty so the change persists on next save.