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
WMTSConnectionDialog Class Reference

Dialog for connecting to an OGC WMTS service and selecting a layer to add. More...

#include <wmtsconnectiondialog.h>

Inheritance diagram for WMTSConnectionDialog:
Collaboration diagram for WMTSConnectionDialog:

Public Member Functions

 WMTSConnectionDialog (QWidget *parent=nullptr)
 
 ~WMTSConnectionDialog () override
 
WMTSLayercreateLayer (QObject *parent=nullptr) const
 Returns a configured WMTSLayer for the user's selection.
 

Detailed Description

Dialog for connecting to an OGC WMTS service and selecting a layer to add.

Own implementation — no QGIS dependency. The dialog allows the user to:

  1. Enter a WMTS base URL.
  2. Click "Connect" to asynchronously fetch GetCapabilities.
  3. Browse the returned layer list.
  4. Pick a layer, tile matrix set, style, and image format.
  5. Accept to receive a configured WMTSLayer ready to be added to the canvas.

Recently used WMTS URLs are persisted in QSettings.

Usage:

if (dlg.exec() == QDialog::Accepted)
{
WMTSLayer *layer = dlg.createLayer(project);
canvas->addLayer(layer);
}
Dialog for connecting to an OGC WMTS service and selecting a layer to add.
Definition wmtsconnectiondialog.h:50
A map layer that fetches tiled imagery from an OGC WMTS service.
Definition wmtslayer.h:101

Constructor & Destructor Documentation

◆ WMTSConnectionDialog()

WMTSConnectionDialog::WMTSConnectionDialog ( QWidget *  parent = nullptr)
explicit

◆ ~WMTSConnectionDialog()

WMTSConnectionDialog::~WMTSConnectionDialog ( )
override

Member Function Documentation

◆ createLayer()

WMTSLayer * WMTSConnectionDialog::createLayer ( QObject *  parent = nullptr) const

Returns a configured WMTSLayer for the user's selection.

Caller takes ownership. Returns nullptr if rejected.


The documentation for this class was generated from the following files: