Class: QgsMultiSurface

Multi surface geometry collection.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMultiSurface

Base classes

QgsGeometryCollection

Geometry collection.

QgsAbstractGeometry

Abstract base class for all geometries.

Subclasses

QgsMultiPolygon

Multi polygon geometry collection.

Methods

surfaceN

Returns the surface with the specified index.

class qgis.core.QgsMultiSurface[source]

Bases: QgsGeometryCollection

__init__()

Constructor for an empty multisurface geometry.

__init__(a0: QgsMultiSurface)
Parameters:

a0 (QgsMultiSurface)

surfaceN(self, index: int) QgsSurface[source]

Returns the surface with the specified index.

Raises:

IndexError – if no surface with the specified index exists.

Added in version 3.16.

Parameters:

index (int)

Return type:

QgsSurface