![]() |
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 <QStringList>Go to the source code of this file.
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::io |
| namespace | openswmmvis::io::gdalcaps |
Functions | |
| void | openswmmvis::io::gdalcaps::ensureRegistered () |
| Idempotently registers all GDAL/OGR drivers (safe to call often). | |
| bool | openswmmvis::io::gdalcaps::driverAvailable (const char *shortName) |
| True when a GDAL/OGR driver with this short name is registered. | |
| QStringList | openswmmvis::io::gdalcaps::availableRasterExtensions () |
| Lower-cased, de-duplicated file extensions ("tif", "asc", …) that registered raster drivers report they can open. Sorted. | |
| QStringList | openswmmvis::io::gdalcaps::availableVectorExtensions () |
| availableRasterExtensions() counterpart for vector (OGR) drivers. | |
| QString | openswmmvis::io::gdalcaps::rasterOpenFilter () |
| A QFileDialog filter string for opening raster layers, built from the drivers actually present. "All supported" first, per-format groups next, "All files (*)" last. Formats whose driver is not registered never appear — so the dialog cannot promise a format the build can't open. | |
| QString | openswmmvis::io::gdalcaps::vectorOpenFilter () |
| vectorOpenFilter() counterpart for vector layers. | |
Runtime GDAL/OGR driver capability probe.
Lets the UI advertise only the formats the compiled GDAL actually registered, instead of a hard-coded literal that can promise drivers (e.g. NetCDF / HDF) a minimal build never included. This honours the project directive to add as few GDAL build modules as possible: the Open dialog filters simply reflect whatever driver set is present, so enabling an optional vcpkg feature later widens them automatically — no code change.