Class: QgsGeoNodeConnection

class qgis.core.QgsGeoNodeConnection(name: str)

Bases: sip.wrapper

Constructor for a QgsGeoNodeConnection with the specified name.

QgsGeoNodeConnection(QgsGeoNodeConnection)

Encapsulates settings related to a single GeoNode connection.

New in version 3.0.

Parameters

name

addWfsConnectionSettings(self, uri: QgsDataSourceUri)QgsDataSourceUri

Adds uri parameters relating to the settings for a WFS layer on the connection to a QgsDataSourceUri uri.

Parameters

uri (QgsDataSourceUri) –

Return type

QgsDataSourceUri

addWmsConnectionSettings(self, uri: QgsDataSourceUri)QgsDataSourceUri

Adds uri parameters relating to the settings for a WMS layer on the connection to a QgsDataSourceUri uri.

Parameters

uri (QgsDataSourceUri) –

Return type

QgsDataSourceUri

connectionName(self) → str

Returns the name of the connection.

Return type

str

setConnectionName(self, connectionName: str)

Sets the name of the connection.

See also

connectionName()

Parameters

connectionName (str) –

setUri(self, uri: QgsDataSourceUri)

Sets the uri for the GeoNode connection.

See also

uri()

Parameters

uri (QgsDataSourceUri) –

uri(self)QgsDataSourceUri

Returns the URI for the GeoNode connection.

See also

setUri()

Return type

QgsDataSourceUri