Class: QgsMeshDataProvider

class qgis.core.QgsMeshDataProvider

Bases: QgsDataProvider, QgsMeshDataSourceInterface, QgsMeshDatasetSourceInterface

Base class for providing data for QgsMeshLayer

Responsible for reading native mesh data

Note

The API is considered EXPERIMENTAL and can be changed without a notice

New in version 3.2.

QgsMeshDataProvider(uri: str, providerOptions: QgsDataProvider.ProviderOptions, flags: Union[QgsDataProvider.ReadFlags, QgsDataProvider.ReadFlag] = QgsDataProvider.ReadFlags()) Ctor

Methods

appendError

Add error message

childEvent

connectNotify

customEvent

disconnectNotify

isSignalConnected

receivers

sender

senderSignalIndex

setError

Sets error message

setTemporalUnit

Sets the temporal unit of the provider and reload data if it changes.

temporalCapabilities

rtype

QgsMeshDataProviderTemporalCapabilities

timerEvent

Signals

datasetGroupsAdded

Emitted when some new dataset groups have been added [signal]

appendError(self, message: QgsErrorMessage)

Add error message

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
datasetGroupsAdded

Emitted when some new dataset groups have been added [signal]

Parameters

count (int) –

disconnectNotify(self, QMetaMethod)
isSignalConnected(self, QMetaMethod)bool
receivers(self, PYQT_SIGNAL)int
sender(self)QObject
senderSignalIndex(self)int
setError(self, error: QgsError)

Sets error message

setTemporalUnit(self, unit: QgsUnitTypes.TemporalUnit)

Sets the temporal unit of the provider and reload data if it changes.

Parameters

unit (QgsUnitTypes.TemporalUnit) – the temporal unit

New in version 3.14.

temporalCapabilities(self)QgsMeshDataProviderTemporalCapabilities
Return type

QgsMeshDataProviderTemporalCapabilities

timerEvent(self, QTimerEvent)