|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Contains utility functions for OGC WMS layers. More...
#include <qgswmsutils.h>
Static Public Member Functions | |
| static bool | isWmsLayer (QgsMapLayer *layer) |
| Returns whether a map layer is an OGC WMS layer or not. | |
| static QString | wmsVersion (QgsRasterLayer *layer) |
| Returns the WMS version of a WMS layer as a string (e.g., "1.3.0"). | |
Contains utility functions for OGC WMS layers.
Definition at line 29 of file qgswmsutils.h.
|
static |
Returns whether a map layer is an OGC WMS layer or not.
| layer | Map layer that will be checked. |
false for WMTS or XYZ tile layers. Definition at line 22 of file qgswmsutils.cpp.
|
static |
Returns the WMS version of a WMS layer as a string (e.g., "1.3.0").
Returns an empty string if the layer is not a valid WMS layer.
| layer | WMS layer from which the version will be queried. |
Definition at line 44 of file qgswmsutils.cpp.