Class: QgsVertexIterator

class qgis.core.QgsVertexIterator

Bases: sip.wrapper

Java-style iterator for traversal of vertices of a geometry

New in version 3.0.

QgsVertexIterator() Constructor for QgsVertexIterator

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

QgsVertexIterator(QgsVertexIterator)

Methods

hasNext

Find out whether there are more vertices

next

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

hasNext(self)bool

Find out whether there are more vertices

Return type

bool

next(self)QgsPoint

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

Return type

QgsPoint