Class: QgsSurface

class qgis.core.QgsSurface

Bases: QgsAbstractGeometry

QgsSurface(QgsSurface)

Methods

boundingBox

rtype

QgsRectangle

calculateBoundingBox

childCount

childGeometry

childPoint

clearCache

hasChildGeometries

isValid

param flags

setZMTypeFromSubGeometry

surfaceToPolygon

Gets a polygon representation of this surface.

boundingBox(self) → QgsRectangle
Return type

QgsRectangle

calculateBoundingBox()
childCount()
childGeometry()
childPoint()
clearCache(self)
hasChildGeometries()
isValid(self, flags: int = 0) → Tuple[bool, str]
Parameters

flags (int = 0) –

Return type

Tuple[bool, str]

setZMTypeFromSubGeometry()
surfaceToPolygon(self) → QgsPolygon

Gets a polygon representation of this surface. Ownership is transferred to the caller.

Return type

QgsPolygon