Class: QgsOWSSourceSelect

class qgis.gui.QgsOWSSourceSelect(service: str, parent: QWidget = None, fl: Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags, widgetMode: QgsProviderRegistry.WidgetMode = QgsProviderRegistry.WidgetMode.None)

Bases: qgis._gui.QgsAbstractDataSourceWidget

Constructor

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.

Methods

actionEvent
addButton
addDefaultServers Add a few example servers to the list.
addWmsListItem
addWmsListRow layer name derived from latest layer selection (updated as long it’s not edited manually)
changeEvent
childEvent
clearCrs Clear CRSs
clearFormats Clear previously set formats
clearTimes Clear times
closeEvent
connName Connection name
connectNotify
connectionInfo Connection info (uri)
contextMenuEvent
create
customEvent
descriptionForAuthId Returns a textual description for the authority id
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enableLayersForCrs
enterEvent
event
eventFilter
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
mapCanvas
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
populateConnectionList Populate the connection list combo box
populateCrs Sets supported CRSs
populateFormats Populate supported formats
populateLayerList Populate the layer list.
populateTimes Populate times
providerFormats List of image formats (encodings) supported by provider
receivers
refresh Triggered when the provider’s connections need to be refreshed
resizeEvent
selectedCacheLoadControl Returns currently selected cache load control
selectedCrs Returns currently selected Crs
selectedFormat Returns currently selected format
selectedLayersCrses Server CRS supported for currently selected layer item(s)
selectedLayersFormats List of formats supported for currently selected layer item(s)
selectedLayersTimes List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)
selectedTime Returns currently selected time
sender
senderSignalIndex
setConnectionListPosition Sets the server connection combo box to that stored in the config file.
setupButtons
sharedPainter
showError show whatever error is exposed.
showEvent
showStatusMessage Sets status message to theMessage
tabletEvent
timerEvent
updateMicroFocus
wheelEvent
widgetMode

Signals

Attributes

class SupportedFormat

Bases: sip.wrapper

QgsOWSSourceSelect.SupportedFormat(QgsOWSSourceSelect.SupportedFormat)

format
label
actionEvent()
addButton()
addDefaultServers(self)

Add a few example servers to the list.

addWmsListItem(self, el: QDomElement, row: int, column: int)
addWmsListRow(self, item: QDomElement, row: int)

layer name derived from latest layer selection (updated as long it’s not edited manually)

changeEvent()
childEvent()
clearCrs(self)

Clear CRSs

clearFormats(self)

Clear previously set formats

clearTimes(self)

Clear times

closeEvent()
connName(self) → str

Connection name

connectNotify()
connectionInfo(self) → str

Connection info (uri)

contextMenuEvent()
create()
customEvent()
descriptionForAuthId(self, authId: str) → str

Returns a textual description for the authority id

destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enableLayersForCrs(self, item: QTreeWidgetItem)
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
mapCanvas()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
populateConnectionList(self)

Populate the connection list combo box

populateCrs(self)

Sets supported CRSs

populateFormats(self)

Populate supported formats

populateLayerList(self)

Populate the layer list.

retval false if the layers could not be retrieved or parsed

populateTimes(self)

Populate times

providerFormats(self) → object

List of image formats (encodings) supported by provider

Returns:list of format/label pairs
receivers()
refresh(self)

Triggered when the provider’s connections need to be refreshed

resizeEvent()
selectedCacheLoadControl(self) → QNetworkRequest.CacheLoadControl

Returns currently selected cache load control

selectedCrs(self) → str

Returns currently selected Crs

selectedFormat(self) → str

Returns currently selected format

selectedLayersCrses(self) → List[str]

Server CRS supported for currently selected layer item(s)

selectedLayersFormats(self) → List[str]

List of formats supported for currently selected layer item(s)

selectedLayersTimes(self) → List[str]

List of times (temporalDomain timePosition/timePeriod for currently selected layer item(s)

selectedTime(self) → str

Returns currently selected time

sender()
senderSignalIndex()
setConnectionListPosition(self)

Sets the server connection combo box to that stored in the config file.

setupButtons()
sharedPainter()
showError(self, title: str, format: str, error: str)

show whatever error is exposed.

showEvent()
showStatusMessage(self, message: str)

Sets status message to theMessage

tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()
widgetMode()