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
addbasemapdialog.h File Reference

Unified "Add Basemap" dialog with tabs for XYZ, WMS/WMTS, and ArcGIS REST. More...

#include "connections/basemapconnection.h"
#include <hydrocoupleogc/httpclient.h>
#include <hydrocoupleogc/servicecredentials.h>
#include <hydrocoupleogc/wfscapabilities.h>
#include <QList>
#include <QPair>
#include <QRectF>
#include <QString>
#include <QDialog>
#include <memory>
Include dependency graph for addbasemapdialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AddBasemapDialog
 Unified dialog for adding a layer from a web service or a file. More...
 

Detailed Description

Unified "Add Basemap" dialog with tabs for XYZ, WMS/WMTS, and ArcGIS REST.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026

The dialog has five tabs:

  • Tab 0: XYZ Tiles — URL template, zoom range, tile pixel ratio, axis order, authentication, HTTP headers, Test Connection button.
  • Tab 1: WMS/WMTS — URL with protocol auto-detection, Connect, layer tree, style/format/CRS/tile-matrix-set, Advanced options, authentication, HTTP headers.
  • Tab 2: WCS — URL, Connect, coverage tree, format/CRS/range/interpolation, authentication, HTTP headers.
  • Tab 3: ArcGIS REST — URL, Portal endpoint fields, Connect, result info panel, authentication, HTTP headers.
  • Tab 4: Local File — local raster file (GeoTIFF/PNG/JPEG/BMP/…), optional world file, CRS selection.

createLayer(QObject*) returns an OpenSWMMVisLayer* configured from the accepted state (caller takes ownership).

The dialog also persists connections via BasemapConnectionStore.