Class: QgsMeshDriverMetadata

class qgis.core.QgsMeshDriverMetadata

Bases: sip.wrapper

Holds metadata about mesh driver

New in version 3.12.

QgsMeshDriverMetadata() Constructs default metadata without any capabilities

QgsMeshDriverMetadata(name: str, description: str, capabilities: Union[QgsMeshDriverMetadata.MeshDriverCapabilities, QgsMeshDriverMetadata.MeshDriverCapability], writeDatasetOnFileSuffix: str) Constructs driver metadata with selected capabilities

Parameters
  • name – name/key of the driver

  • description – short description of the driver

  • capabilities – driver’s capabilities

  • writeDatasetOnFileSuffix – suffix used to write datasets on file

Deprecated since version QGIS: 3.22

QgsMeshDriverMetadata(name: str, description: str, capabilities: Union[QgsMeshDriverMetadata.MeshDriverCapabilities, QgsMeshDriverMetadata.MeshDriverCapability], writeDatasetOnFileSuffix: str, writeMeshFrameOnFileSuffix: str, maxVerticesPerface: int) Constructs driver metadata with selected capabilities

Parameters
  • name – name/key of the driver

  • description – short description of the driver

  • capabilities – driver’s capabilities

  • writeDatasetOnFileSuffix – suffix used to write datasets on file

  • writeMeshFrameOnFileSuffix – suffix used to write mesh frame on file

  • maxVerticesPerface – maximum vertices count per face supported by the driver

New in version 3.22.

QgsMeshDriverMetadata(QgsMeshDriverMetadata)

Methods

capabilities

Returns the capabilities for this driver.

description

Returns the description for this driver.

maximumVerticesCountPerFace

Returns the maximum number of vertices per face supported by the driver

name

Returns the name (key) for this driver.

writeDatasetOnFileSuffix

Returns the suffix used to write datasets on file

writeMeshFrameOnFileSuffix

Returns the suffix used to write mesh on file

Attributes

CanWriteEdgeDatasets

CanWriteFaceDatasets

CanWriteMeshData

CanWriteVertexDatasets

staticMetaObject

CanWriteEdgeDatasets = 4
CanWriteFaceDatasets = 1
CanWriteMeshData = 8
CanWriteVertexDatasets = 2
class MeshDriverCapabilities
class MeshDriverCapabilities(Union[QgsMeshDriverMetadata.MeshDriverCapabilities, QgsMeshDriverMetadata.MeshDriverCapability]) None
class MeshDriverCapabilities(QgsMeshDriverMetadata.MeshDriverCapabilities) None

Bases: sip.wrapper

baseClass

alias of qgis._core.QgsMeshDriverMetadata

class MeshDriverCapability

Bases: int

baseClass

alias of qgis._core.QgsMeshDriverMetadata

capabilities(self) QgsMeshDriverMetadata.MeshDriverCapabilities

Returns the capabilities for this driver.

Return type

QgsMeshDriverMetadata.MeshDriverCapabilities

description(self) str

Returns the description for this driver.

Return type

str

maximumVerticesCountPerFace(self) int

Returns the maximum number of vertices per face supported by the driver

New in version 3.22.

Return type

int

name(self) str

Returns the name (key) for this driver.

Return type

str

staticMetaObject = <PyQt5.QtCore.QMetaObject object>
writeDatasetOnFileSuffix(self) str

Returns the suffix used to write datasets on file

Return type

str

writeMeshFrameOnFileSuffix(self) str

Returns the suffix used to write mesh on file

New in version 3.22.

Return type

str