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

close

Closes the data provider and free every resources used

connectNotify

customEvent

disconnectNotify

driverMetadata

Returns the mesh driver metadata of the provider

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

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

appendError(self, message: QgsErrorMessage)

Add error message

childEvent(self, QChildEvent)
close(self)

Closes the data provider and free every resources used

New in version 3.22.

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

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters
  • name (str = ...) –

  • revision (int = ...) –

  • arguments (Sequence = ...) –

Return type

PYQT_SIGNAL

disconnectNotify(self, QMetaMethod)
driverMetadata(self) QgsMeshDriverMetadata

Returns the mesh driver metadata of the provider

Return type

QgsMeshDriverMetadata

Returns

the mesh driver metadata of the provider

New in version 3.22.

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)