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
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to