Class: QgsGeometryConstPartIterator¶
- class qgis.core.QgsGeometryConstPartIterator¶
Bases:
sip.wrapper
Java-style iterator for const traversal of parts of a geometry
Added in version 3.6.
QgsGeometryConstPartIterator() Constructor for QgsGeometryConstPartIterator
QgsGeometryConstPartIterator(geometry: Optional[QgsAbstractGeometry]) Constructs iterator for the given geometry
QgsGeometryConstPartIterator(a0:
QgsGeometryConstPartIterator
)- hasNext(self) bool ¶
Find out whether there are more parts
- Return type:
bool
- next(self) QgsAbstractGeometry | None ¶
Returns next part of the geometry (undefined behavior if
hasNext()
returnsFalse
before callingnext()
)- Return type:
Optional[QgsAbstractGeometry]