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

Plain data structs for all supported basemap connection types. More...

#include <QMap>
#include <QString>
Include dependency graph for basemapconnection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BasemapAuth
 Username + password pair. Stored encrypted in QSettings by BasemapConnectionStore; never written to project files. More...
 
struct  XYZConnection
 All parameters needed to configure an XYZ (slippy-map) tile layer. More...
 
struct  WMSConnection
 Parameters for an OGC WMS or WMTS service. More...
 
struct  WCSConnection
 Parameters for an OGC Web Coverage Service (WCS 1.1.x / 2.0) source. More...
 
struct  WFSConnection
 Parameters for an OGC Web Feature Service (WFS 1.x / 2.0) source. More...
 
struct  ArcGISRestConnection
 Parameters for an ArcGIS REST tiled MapServer service. More...
 
struct  LocalRasterConnection
 Parameters for a local raster (GeoTIFF/PNG/JPEG/...) basemap. More...
 

Typedefs

using BasemapHttpHeaders = QMap< QString, QString >
 Arbitrary HTTP header map for basemap requests.
 

Enumerations

enum class  TileAxisOrder {
  ZXY = 0 ,
  ZYX = 1
}
 Controls how {x}/{y} tile coordinates are ordered in the URL. More...
 

Detailed Description

Plain data structs for all supported basemap connection types.

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

BasemapHttpHeaders is a QMap<QString,QString> where the key "referer" stores the HTTP Referer header. Arbitrary extra headers are stored alongside it. When persisted in QSettings the key is written under a http-header/ sub-group, matching the QGIS convention so exported connection XML is interoperable.

TileAxisOrder is shared between XYZConnection (stored on the struct) and XYZTileLayer (stored as a runtime member).

Typedef Documentation

◆ BasemapHttpHeaders

using BasemapHttpHeaders = QMap<QString, QString>

Arbitrary HTTP header map for basemap requests.

Key "referer" is the HTTP Referer. All other keys are additional headers (e.g., "User-Agent", "X-Api-Key"). Written to QSettings under the http-header/{key} sub-group.

Enumeration Type Documentation

◆ TileAxisOrder

enum class TileAxisOrder
strong

Controls how {x}/{y} tile coordinates are ordered in the URL.

Enumerator
ZXY 

Standard OSM / slippy-map: tile/{z}/{x}/{y}

ZYX 

ArcGIS REST: tile/{z}/{y}/{x}