Subgroup: Feature
Class: QgsFeatureIterator¶
-
class
qgis.core.
QgsFeatureIterator
¶ Bases:
sip.wrapper
Wrapper for iterator of features from vector data provider or vector layer
Methods
close
compileStatus
Returns the status of expression compilation for filter expression requests. isClosed
find out whether the iterator is still valid or closed already isValid
Will return if this iterator is valid. nextFeature
rewind
Attributes
-
close
(self) → bool¶
-
compileStatus
(self) → QgsAbstractFeatureIterator.CompileStatus¶ Returns the status of expression compilation for filter expression requests.
New in version 2.16.
-
isClosed
(self) → bool¶ find out whether the iterator is still valid or closed already
-
isValid
(self) → bool¶ Will return if this iterator is valid. An invalid iterator was probably introduced by a failed attempt to acquire a connection or is a default constructed iterator.
See also
New in version 3.0.
-
nextFeature
(self, f: QgsFeature) → bool¶
-
rewind
(self) → bool¶
-