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: 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.

Parameters
  • service (str) –

  • parent (QWidget = None) –

  • fl (Union[Qt.WindowFlags) –

  • widgetMode

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)
Parameters
  • 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)

Parameters
  • item (QDomElement) –

  • row (int) –

changeEvent()
childEvent()
clearCrs(self)

Clear CRSs

clearFormats(self)

Clear previously set formats

clearTimes(self)

Clear times

closeEvent()
connName(self) → str

Connection name

Return type

str

connectNotify()
connectionInfo(self) → str

Connection info (uri)

Return type

str

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

Returns a textual description for the authority id

Parameters

authId (str) –

Return type

str

destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enableLayersForCrs(self, item: QTreeWidgetItem)
Parameters

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

Return type

object

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

Return type

QNetworkRequest.CacheLoadControl

selectedCrs(self) → str

Returns currently selected Crs

Return type

str

selectedFormat(self) → str

Returns currently selected format

Return type

str

selectedLayersCrses(self) → List[str]

Server CRS supported for currently selected layer item(s)

Return type

List[str]

selectedLayersFormats(self) → List[str]

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

Return type

List[str]

selectedLayersTimes(self) → List[str]

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

Return type

List[str]

selectedTime(self) → str

Returns currently selected time

Return type

str

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.

Parameters
  • title (str) –

  • format (str) –

  • error (str) –

showEvent()
showStatusMessage(self, message: str)

Sets status message to theMessage

Parameters

message (str) –

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