[Qgis-developer] QgsFeatureRequest.NoGeometry flag makes iterator return no features

2014-10-16 Thread G. Allegri
I need to iterate over a layer without the need of geometries. I rembember I used this flag time ago and it worked fine. Now, if I set this on the feature request, I get an empty set of features from the iterator. Am I doing something wrong? req = QgsFeatureRequest(QgsExpression('$area1000,00'))

Re: [Qgis-developer] QgsFeatureRequest.NoGeometry flag makes iterator return no features

2014-10-16 Thread Salvatore Larosa
Hi Giovanni, On Thu, Oct 16, 2014 at 7:45 PM, G. Allegri gioha...@gmail.com wrote: I need to iterate over a layer without the need of geometries. I rembember I used this flag time ago and it worked fine. Now, if I set this on the feature request, I get an empty set of features from the

Re: [Qgis-developer] QgsFeatureRequest.NoGeometry flag makes iterator return no features

2014-10-16 Thread G. Allegri
Great Salvatore, you're right. I thought the geometry wasn't passed by the iterator but it could be used during the request expression evaulation. That was wrong ;) giovanni 2014-10-16 20:44 GMT+02:00 Salvatore Larosa lrssv...@gmail.com: Hi Giovanni, On Thu, Oct 16, 2014 at 7:45 PM, G.