Class: QgsMultiCurve

Multi curve geometry collection.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMultiCurve

Base classes

QgsGeometryCollection

Geometry collection.

QgsAbstractGeometry

Abstract base class for all geometries.

Subclasses

QgsMultiLineString

Multi line string geometry collection.

Methods

curveN

Returns the curve with the specified index.

reversed

Returns a copy of the multi curve, where each component curve has had its line direction reversed.

class qgis.core.QgsMultiCurve[source]

Bases: QgsGeometryCollection

curveN(self, index: int) QgsCurve[source]

Returns the curve with the specified index.

Raises:

IndexError – if no curve with the specified index exists.

Added in version 3.16.

Parameters:

index (int)

Return type:

QgsCurve

reversed(self) QgsMultiCurve | None[source]

Returns a copy of the multi curve, where each component curve has had its line direction reversed.

Return type:

Optional[QgsMultiCurve]