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
rastergeoref.cpp File Reference
#include "io/rastergeoref.h"
#include "io/gdaldrivers.h"
#include <QFile>
#include <QFileInfo>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <gdal_priv.h>
#include <ogr_spatialref.h>
#include <cpl_conv.h>
Include dependency graph for rastergeoref.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::io
 
namespace  openswmmvis::io::rastergeoref
 

Functions

bool openswmmvis::io::rastergeoref::parseWorldFile (const QString &path, WorldFileParams *out, QString *err)
 Parses a world file: six whitespace/newline-separated doubles.
 
QStringList openswmmvis::io::rastergeoref::worldFileCandidates (const QString &imagePath)
 Conventional world-file sidecar paths for imagePath, in priority order.
 
void openswmmvis::io::rastergeoref::worldFileToGeoTransform (const WorldFileParams &wf, double gt[6])
 Converts world-file parameters to a GDAL GeoTransform.
 
bool openswmmvis::io::rastergeoref::applyPamGeoref (const QString &imagePath, const double *gt6, const QString &crsWkt, QString *err)
 Persists georeferencing on imagePath so every later plain GDAL open sees it.
 
GeorefProbe openswmmvis::io::rastergeoref::probeGeoref (const QString &imagePath)
 Probes imagePath read-only; never fails (an unopenable file simply yields a default-constructed probe).
 
QString openswmmvis::io::rastergeoref::authCodeToWkt (const QString &authCode, QString *err)
 Resolves a CRS identifier ("EPSG:26985" or anything else OGRSpatialReference::SetFromUserInput accepts) to WKT.
 

Detailed Description

Author
SWMMVis
Date
2026
License\n GPL-3.0-or-later