Class: QgsOWSSourceSelect¶
Dialog to create connections and add layers WCS etc.
This dialog allows the user to define and save connection information for WMS servers, etc.
The user can then connect and add layers from the WCS server to the map canvas.
Class Hierarchy¶
Base classes¶
Abstract base Data Source Widget to create connections and add layers This class provides common functionality and the interface for all source select dialogs used by data providers to configure data sources and add layers. |
|
- class qgis.gui.QgsOWSSourceSelect[source]¶
Bases:
QgsAbstractDataSourceWidget- __init__(service: str | None, parent: QWidget | None = None, fl: Qt.WindowFlags | Qt.WindowType = QgsGuiUtils.ModalDialogFlags, widgetMode: QgsProviderRegistry.WidgetMode = QgsProviderRegistry.WidgetMode.Standalone)
Constructor
- Parameters:
service (Optional[str])
parent (Optional[QWidget] = None)
fl (Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags)
widgetMode (QgsProviderRegistry.WidgetMode = QgsProviderRegistry.WidgetMode.Standalone)
- descriptionForAuthId(self, authId: str | None) str[source]¶
Returns a textual description for the authority id
- Parameters:
authId (Optional[str])
- Return type:
str
- enableLayersForCrs(self, item: QTreeWidgetItem | None)[source]¶
layer name derived from latest layer selection (updated as long it’s not edited manually)
- Parameters:
item (Optional[QTreeWidgetItem])
- prepareExtent(self)[source]¶
Prepares the spatial extent box with the general settings including original crs, destination crs and the map canvas if it is available.
Added in version 3.26.
- providerFormats(self) List[QgsOWSSourceSelect.SupportedFormat]¶
List of image formats (encodings) supported by provider
- Return type:
- Returns:
list of format/label pairs
- selectedCacheLoadControl(self) QNetworkRequest.CacheLoadControl[source]¶
Returns currently selected cache load control
- Return type:
QNetworkRequest.CacheLoadControl
- selectedLayersCrses(self) List[str][source]¶
Server CRS supported for currently selected layer item(s)
- Return type:
List[str]
- selectedLayersFormats(self) List[str][source]¶
List of formats supported for currently selected layer item(s)
- Return type:
List[str]
- selectedLayersTimes(self) List[str][source]¶
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
- Return type:
List[str]
- setConnectionListPosition(self)[source]¶
Sets the server connection combo box to that stored in the config file.