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