Class: QgsGeometryPartIterator

class qgis.core.QgsGeometryPartIterator

Bases: sip.wrapper

Java-style iterator for traversal of parts of a geometry

New in version 3.6.

QgsGeometryPartIterator() Constructor for QgsGeometryPartIterator

QgsGeometryPartIterator(geometry: QgsAbstractGeometry) Constructs iterator for the given geometry

QgsGeometryPartIterator(QgsGeometryPartIterator)

Methods

hasNext

Find out whether there are more parts

next

Returns next part of the geometry (undefined behavior if hasNext() returns False before calling next())

hasNext(self)bool

Find out whether there are more parts

Return type

bool

next(self)QgsAbstractGeometry

Returns next part of the geometry (undefined behavior if hasNext() returns False before calling next())

Return type

QgsAbstractGeometry