mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-09 00:17:27 -05:00
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgswmsutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsWmsUtils
|
|
{
|
|
%Docstring(signature="appended")
|
|
Contains utility functions for OGC WMS layers.
|
|
|
|
.. versionadded:: 4.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgswmsutils.h"
|
|
%End
|
|
public:
|
|
|
|
static bool isWmsLayer( QgsMapLayer *layer );
|
|
%Docstring
|
|
Returns whether a map ``layer`` is an OGC WMS layer or not.
|
|
|
|
:param layer: Map layer that will be checked.
|
|
|
|
.. note::
|
|
|
|
This method is strictly checking for OGC WMS sources. It will return ``False`` for WMTS or XYZ tile layers.
|
|
%End
|
|
|
|
static QString wmsVersion( QgsRasterLayer *layer );
|
|
%Docstring
|
|
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.
|
|
|
|
:param layer: WMS layer from which the version will be queried.
|
|
%End
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgswmsutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|