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.
Enums
Methods
Add a few example servers to the list.
layer name derived from latest layer selection (updated as long it’s not edited manually)
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 the layer list.
Populate times
List of image formats (encodings) supported by provider
Triggered when the provider’s connections need to be refreshed
Returns currently selected cache load control
Returns currently selected Crs
Returns currently selected format
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)
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
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.
- Returns
False
if the layers could not be retrieved or parsed
-
populateTimes
(self)¶ Populate times
-
providerFormats
(self) → List[QgsOWSSourceSelect.SupportedFormat]¶ 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
()¶
-
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
()¶
-
class