Class: QgsMeshDataProvider

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

Added in version 3.2.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMeshDataProvider

Base classes

QgsDataProvider

Abstract base class for spatial data provider implementations.

QObject

QgsMeshDataSourceInterface

Interface for mesh data sources

QgsMeshDatasetSourceInterface

Interface for mesh datasets and dataset groups

class qgis.core.QgsMeshDataProvider[source]

Bases: QgsDataProvider, QgsMeshDataSourceInterface, QgsMeshDatasetSourceInterface

__init__(uri: str | None, providerOptions: QgsDataProvider.ProviderOptions, a2: Qgis.DataProviderReadFlags | Qgis.DataProviderReadFlag = Qgis.DataProviderReadFlags())

Ctor

Parameters:
close(self)[source]

Closes the data provider and free every resources used

Added in version 3.22.

signal datasetGroupsAdded[source]

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.

driverMetadata(self) QgsMeshDriverMetadata[source]

Returns the mesh driver metadata of the provider

Return type:

QgsMeshDriverMetadata

Returns:

the mesh driver metadata of the provider

Added in version 3.22.

setTemporalUnit(self, unit: Qgis.TemporalUnit)[source]

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

Parameters:

unit (Qgis.TemporalUnit) – the temporal unit

Added in version 3.14.