Class: QgsMultiCurve

class qgis.core.QgsMultiCurve

Bases: QgsGeometryCollection

Multi curve geometry collection.

New in version 2.10:

Methods

addGeometry

param g

asGml2

param doc

asGml3

param doc

boundary

rtype

QgsAbstractGeometry

clear

clone

rtype

QgsMultiCurve

createEmptyWithSameType

rtype

QgsMultiCurve

curveN

Returns the curve with the specified index.

fromWkt

param wkt

geometryType

rtype

str

insertGeometry

param g

reversed

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

toCurveType

rtype

QgsMultiCurve

addGeometry(self, g: QgsAbstractGeometry) bool
Parameters

g (QgsAbstractGeometry) –

Return type

bool

asGml2(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) QDomElement
Parameters
  • doc (QDomDocument) –

  • precision (int = 17) –

  • ns (str = '') –

  • axisOrder (QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) –

Return type

QDomElement

asGml3(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) QDomElement
Parameters
  • doc (QDomDocument) –

  • precision (int = 17) –

  • ns (str = '') –

  • axisOrder (QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) –

Return type

QDomElement

boundary(self) QgsAbstractGeometry
Return type

QgsAbstractGeometry

clear(self)
clone(self) QgsMultiCurve
Return type

QgsMultiCurve

createEmptyWithSameType(self) QgsMultiCurve
Return type

QgsMultiCurve

curveN(self, index: int) QgsCurve

Returns the curve with the specified index.

Raises

IndexError – if no curve with the specified index exists.

New in version 3.16.

Parameters

index (int) –

Return type

QgsCurve

fromWkt(self, wkt: str) bool
Parameters

wkt (str) –

Return type

bool

geometryType(self) str
Return type

str

insertGeometry(self, g: QgsAbstractGeometry, index: int) bool
Parameters
Return type

bool

reversed(self) QgsMultiCurve

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

New in version 2.14.

Return type

QgsMultiCurve

toCurveType(self) QgsMultiCurve
Return type

QgsMultiCurve