Class: QgsMeshDataProvider

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

Bases: QgsDataProvider, QgsMeshDataSourceInterface, QgsMeshDatasetSourceInterface

Ctor

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.

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