Class: QgsMultiPolygon

class qgis.core.QgsMultiPolygon

Bases: QgsMultiSurface

Multi polygon geometry collection.

Methods

addGeometry

param g

asGml2

param doc

asGml3

param doc

boundary

rtype

QgsAbstractGeometry

calculateBoundingBox

childCount

childGeometry

childPoint

clear

clearCache

clone

rtype

QgsMultiPolygon

createEmptyWithSameType

rtype

QgsMultiPolygon

fromCollectionWkt

fromWkt

param wkt

geometryType

rtype

str

hasChildGeometries

insertGeometry

param g

setZMTypeFromSubGeometry

toCurveType

Returns the geometry converted to the more generic curve type QgsMultiSurface

wktOmitChildType

rtype

bool

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

calculateBoundingBox()
childCount()
childGeometry()
childPoint()
clear(self)
clearCache()
clone(self) → QgsMultiPolygon
Return type

QgsMultiPolygon

createEmptyWithSameType(self) → QgsMultiPolygon
Return type

QgsMultiPolygon

fromCollectionWkt()
fromWkt(self, wkt: str) → bool
Parameters

wkt (str) –

Return type

bool

geometryType(self) → str
Return type

str

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

bool

setZMTypeFromSubGeometry()
toCurveType(self) → QgsMultiSurface

Returns the geometry converted to the more generic curve type QgsMultiSurface

Return type

QgsMultiSurface

Returns

the converted geometry. Caller takes ownership*

wktOmitChildType(self) → bool
Return type

bool