![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Go to the source code of this file.
Functions | |
| void | setupBundledGisDataPaths () |
| Configure GDAL_DATA / PROJ_DATA from bundled data folders if they can be located relative to the running executable. | |
Portable GDAL/PROJ data-directory resolution.
Detects the vcpkg-style gdal/ and proj/ share trees within the running application layout and points GDAL/PROJ at them via environment variables and GDAL's CPL config store. This lets a zipped/folder/bundle deployment of SWMMVis run without a system-wide GDAL/PROJ install or external GDAL_DATA / PROJ_DATA environment.
Search order (first match wins per subdir):
applicationDirPath()/{gdal,proj} (Windows / Linux standard layout; also handles non-bundle macOS dev builds.)applicationDirPath()/../Resources/{gdal,proj} (the standard .app/Contents/Resources/ bundle layout).Call setupBundledGisDataPaths() once, after QCoreApplication has been constructed and before any GDAL/OGR/PROJ use.
| void setupBundledGisDataPaths | ( | ) |
Configure GDAL_DATA / PROJ_DATA from bundled data folders if they can be located relative to the running executable.
No-op when QCoreApplication has not been constructed yet, or when no candidate folder contains the expected marker files.