Re: [QGIS-Developer] QgsExpression python pattern

2018-01-31 Thread Nyall Dawson
On 1 February 2018 at 05:45, Chris Crook wrote: > I am updating some plugins which use QgsExpression, and I'm wondering about > the best way to use expressions in QGIS3. It in the past I used a pattern > like: > > exp=QgsExpression(expressionText) > exp.prepare(fields)

Re: [QGIS-Developer] QgsExpression python pattern

2018-01-31 Thread Chris Crook
Chris Crook wrote > I am updating some plugins which use QgsExpression, and I'm wondering > about the best way to use expressions in QGIS3. It in the past I used a > pattern like: > > exp=QgsExpression(expressionText) > exp.prepare(fields) > request=QgsFeatureRequest() >

[QGIS-Developer] QgsExpression python pattern

2018-01-31 Thread Chris Crook
I am updating some plugins which use QgsExpression, and I'm wondering about the best way to use expressions in QGIS3. It in the past I used a pattern like: exp=QgsExpression(expressionText) exp.prepare(fields) request=QgsFeatureRequest() request.setSubsetOfAttributes(