Subgroup: Multi

Class: QgsMultiPolygon

class qgis.core.QgsMultiPolygon

Bases: qgis._core.QgsMultiSurface

Multi polygon geometry collection.
addGeometry(self, g: QgsAbstractGeometry) → bool
asGml2(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) → QDomElement
asGml3(self, doc: QDomDocument, precision: int = 17, ns: str = '', axisOrder: QgsAbstractGeometry.AxisOrder = QgsAbstractGeometry.AxisOrder.XY) → QDomElement
asJson(self, precision: int = 17) → str
boundary(self) → QgsAbstractGeometry
calculateBoundingBox()
childCount()
childGeometry()
childPoint()
clear(self)
clearCache()
clone(self) → QgsMultiPolygon
createEmptyWithSameType(self) → QgsMultiPolygon
fromCollectionWkt()
fromWkt(self, wkt: str) → bool
geometryType(self) → str
hasChildGeometries()
insertGeometry(self, g: QgsAbstractGeometry, index: int) → bool
setZMTypeFromSubGeometry()
toCurveType(self) → QgsMultiSurface

Returns the geometry converted to the more generic curve type QgsMultiSurface

Returns:the converted geometry. Caller takes ownership*
wktOmitChildType(self) → bool