Class: QgsOwsConnection¶
-
class
qgis.core.
QgsOwsConnection
(service: str, connName: str)¶ Bases:
PyQt5.QtCore.QObject
Constructor
- Parameters
service (str) – service name: WMS,WFS,WCS
connName (str) – connection name
Connections management
Methods
Adds uri parameters relating to the settings for a WFS connection to a
QgsDataSourceUri
uri
.Adds uri parameters relating to the settings for a WMS or WCS connection to a
QgsDataSourceUri
uri
.Returns connection info string.
Returns the list of connections for the specified service
Returns the connection name.
Deletes the connection for the specified service with the specified name
Retrieves the selected connection for the specified service
Returns a string representing the service type, e.g.
Marks the specified connection for the specified service as selected
Returns the connection uri.
-
addWfsConnectionSettings
(uri: QgsDataSourceUri, settingsKey: str) → QgsDataSourceUri¶ Adds uri parameters relating to the settings for a WFS connection to a
QgsDataSourceUri
uri
. Connection settings are taken from the specified QSettingssettingsKey
.New in version 3.0.
- Parameters
uri (QgsDataSourceUri) –
settingsKey (str) –
- Return type
-
addWmsWcsConnectionSettings
(uri: QgsDataSourceUri, settingsKey: str) → QgsDataSourceUri¶ Adds uri parameters relating to the settings for a WMS or WCS connection to a
QgsDataSourceUri
uri
. Connection settings are taken from the specified QSettingssettingsKey
.New in version 3.0.
- Parameters
uri (QgsDataSourceUri) –
settingsKey (str) –
- Return type
-
childEvent
()¶
-
connectNotify
()¶
-
connectionInfo
(self) → str¶ Returns connection info string.
New in version 3.0.
- Return type
str
-
connectionList
(service: str) → List[str]¶ Returns the list of connections for the specified service
- Parameters
service (str) –
- Return type
List[str]
-
connectionName
(self) → str¶ Returns the connection name.
New in version 3.0.
- Return type
str
-
customEvent
()¶
-
deleteConnection
(service: str, name: str)¶ Deletes the connection for the specified service with the specified name
- Parameters
service (str) –
name (str) –
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
receivers
()¶
-
selectedConnection
(service: str) → str¶ Retrieves the selected connection for the specified service
- Parameters
service (str) –
- Return type
str
-
sender
()¶
-
senderSignalIndex
()¶
-
service
(self) → str¶ Returns a string representing the service type, e.g. “WMS”.
New in version 3.0.
- Return type
str
-
setSelectedConnection
(service: str, name: str)¶ Marks the specified connection for the specified service as selected
- Parameters
service (str) –
name (str) –
-
timerEvent
()¶
-
uri
(self) → QgsDataSourceUri¶ Returns the connection uri.
- Return type