[Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master
Alessandro Pasotti
apasotti at gmail.com
Fri Jul 1 02:59:10 PDT 2016
Hi,
I'm trying to adapt a test to Py3/Qt5 and I get this odd error:
AttributeError: 'QgsFeatureIterator' object has no attribute 'next'
The C++-like call works fine:
fit=layer.dataProvider().getFeatures(request)
f=QgsFeature()
fit.nextFeature(f)
True
the layer is a test layer:
layer.dataProvider().dataSourceUri()
"dbname='/tmp/tmp57y5_gmm/offlineDbFile.sqlite'
table='wfs_test_point20160701113316894'(Geometry) sql="
Same error in python console with a shapefile layer.
Any idea?
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160701/24cb4549/attachment.html>
More information about the Qgis-developer
mailing list