[Qgis-developer] setSubsetOfAttributes() doean't work?
alexander.bruy at gmail.com
Mon May 13 00:50:32 PDT 2013
I try to get features within some rectangle, and want to get only
some attributes without geometries. So I use next code:
request = QgsFeatureRequest()
request.setSubsetOfAttributes([0, 3, 6])
f = QgsFeature()
fit = layer.getFeatures(request)
attrs = f.attributes()
# process attributes
but in attrs valiable I always get *all* feature attributes. Is this
bug or maybe I miss something?
More information about the Qgis-developer