Thanks Tom, sure I'll have a look..

In the meanwhile, I get this idea as a workaround:

vl = iface.activeLayer()

request = QgsFeatureRequest().setFilterExpression(' PH > 7 ')
request.setSubsetOfAttributes([])

data = []
for f in vl.getFeatures(request):
    for j in f.attributes():
        if j is not None:
            data.append(j)


it seems working, but it'd be great to have some feedbacks from you
experts ;)

Thanks again guys!

Matteo
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to