Class: QgsGroupWmsDataDialog¶
A dialog for configuring a WMS group.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Returns group WMS abstract |
|
Returns the request mode of the group. |
|
Returns group WMS short name |
|
Returns group WMS title |
|
Returns whether the time dimension should be computed for this group or not. |
|
Returns QGIS Server Properties for the layer tree group |
|
Sets group WMS abstract |
|
Sets the request mode of the group. |
|
Sets group WMS short name |
|
Sets group WMS title |
|
Sets whether the time dimension should be computed for this group or not |
- class qgis.gui.QgsGroupWmsDataDialog[source]¶
Bases:
QDialog- __init__(parent: QWidget | None = None, fl: Qt.WindowType = QgsGuiUtils.ModalDialogFlags)¶
Constructor
- Parameters:
parent (QWidget|None = None) – parent widget
fl (Qt.WindowType = QgsGuiUtils.ModalDialogFlags) – dialog window flags
- __init__(serverProperties: QgsMapLayerServerProperties, parent: QWidget | None = None, fl: Qt.WindowType = QgsGuiUtils.ModalDialogFlags)
Constructor
- Parameters:
serverProperties (QgsMapLayerServerProperties) – used to initialize the dialog
parent (QWidget|None = None) – parent widget
fl (Qt.WindowType = QgsGuiUtils.ModalDialogFlags) – dialog window flags
- groupAbstract(self) str[source]¶
Returns group WMS abstract
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.abstract instead.- Return type:
str
- groupRequestMode(self) Qgis.WmsGroupRequestMode[source]¶
Returns the request mode of the group. When it’s opaque, WMS treats it as a single opaque layer instead of a collection of individual layers. Its child layers are hidden from GetCapabilities requests. Any direct requests (like GetMap or GetFeatureInfo etc.) for a child layer will result in an error. Child layers are rendered whenever a request is made for the group itself.
See also
See also
QgsLayerTreeGroup.setWmsGroupRequestMode()Added in version 4.2.
- Return type:
- groupShortName(self) str[source]¶
Returns group WMS short name
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.shortName instead.- Return type:
str
- groupTitle(self) str[source]¶
Returns group WMS title
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.title instead.- Return type:
str
- hasTimeDimension(self) bool[source]¶
Returns whether the time dimension should be computed for this group or not. if
True, when a GetCapabilities request is sent, QGIS server would return a TIME dimension computed as an union of all time dimensions of its children recursively. Else, no TIME dimension will be returned.See also
Added in version 3.44.
- Return type:
bool
- serverProperties(self) QgsMapLayerServerProperties | None[source]¶
Returns QGIS Server Properties for the layer tree group
Added in version 3.44.
- Return type:
- setGroupAbstract(self, abstract: str | None)[source]¶
Sets group WMS abstract
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.setAbstract instead.- Parameters:
abstract (str|None)
- setGroupRequestMode(self, groupRequestMode: Qgis.WmsGroupRequestMode)[source]¶
Sets the request mode of the group.
- Parameters:
groupRequestMode (Qgis.WmsGroupRequestMode) – On Opaque, WMS treats it as a single opaque layer instead of a collection of individual layers. On Normal it behaves as a standard group.
See also
See also
QgsLayerTreeGroup.wmsGroupRequestMode()Added in version 4.2.
- setGroupShortName(self, shortName: str | None)[source]¶
Sets group WMS short name
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.setShortName instead.- Parameters:
shortName (str|None)
- setGroupTitle(self, title: str | None)[source]¶
Sets group WMS title
Deprecated since version 3.44: Use
serverProperties()->:py:func:~QgsGroupWmsDataDialog.setTitle instead.- Parameters:
title (str|None)
- setHasTimeDimension(self, hasTimeDimension: bool)[source]¶
Sets whether the time dimension should be computed for this group or not
- Parameters:
hasTimeDimension (bool) – if
True, when a GetCapabilities request is sent, QGIS server would return a TIME dimension computed as an union of all time dimensions of its children recursively. Else, no TIME dimension will be returned.
See also
Added in version 3.44.
Deprecated since version 4.4: Use
QgsGroupWmsDataDialogconstructor server properties parameter to add/remove TIME dimension instead.