Alex, Seems like a bug. I just ran into it trying to fix http://hub.qgis.org/issues/7781
Martin do you have any idea what might be going on? - Nathan On Mon, May 13, 2013 at 5:50 PM, Alexander Bruy <alexander.b...@gmail.com>wrote: > Hi all, > > 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.setFilterRect(self.extent) > request.setFlags(QgsFeatureRequest.NoGeometry) > request.setSubsetOfAttributes([0, 3, 6]) > f = QgsFeature() > fit = layer.getFeatures(request) > while fit.nextFeature(f): > attrs = f.attributes() > # process attributes > ... > > but in attrs valiable I always get *all* feature attributes. Is this > bug or maybe I miss something? > > Thanks, > -- > Alexander Bruy > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer