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
crsreproject.h File Reference
#include <QString>
#include <openswmm/engine/openswmm_engine.h>
Include dependency graph for crsreproject.h:
This graph shows which files directly or indirectly include this file:

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.
 

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

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.