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 class for Data Source widgets to create connections and add layers. |
|
Methods
Add a few example servers to the list. |
|
Clear CRSs |
|
Clear previously set formats |
|
Clear times |
|
Connection name |
|
Connection info (uri) |
|
Returns a textual description for the authority id |
|
Populate the connection list combo box |
|
Sets supported CRSs |
|
Populate supported formats |
|
Populate times |
|
Prepares the spatial extent box with the general settings including original crs, destination crs and the map canvas if it is available. |
|
Returns currently selected cache load control |
|
Returns currently selected Crs |
|
Returns currently selected format |
|
Returns currently selected time |
|
Sets the server connection combo box to that stored in the config file. |
|
show whatever error is exposed. |
|
Sets status message to theMessage |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsOWSSourceSelect. See the FAQ for more details.
layer name derived from latest layer selection (updated as long it's not edited manually) |
|
Populate the layer list. |
|
List of image formats (encodings) supported by provider |
|
Triggered when the provider's connections need to be refreshed |
|
Server CRS supported for currently selected layer item(s) |
|
List of formats supported for currently selected layer item(s) |
|
List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s) |
- 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
- virtual 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.
- virtual 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
- virtual selectedLayersCrses(self) List[str] [source]¶
Server CRS supported for currently selected layer item(s)
- Return type:
List[str]
- virtual selectedLayersFormats(self) List[str] [source]¶
List of formats supported for currently selected layer item(s)
- Return type:
List[str]
- virtual 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.