Good thinking Martin,
QgsFeatureRequest request;
request.setExpression( "type = 5 and $area > 100" );
request.setLimit(10)
layer->select( request );
I really like this API style. We can add methods to QgsFeatureRequest for
better access without busting the select API, which is good imo.
Could even have the setMethods return the QgsFeatureRequest instance so you
could do.
QgsFeatureRequest request;
request.setExpression( "type = 5 and $area > 100"
).setLimit(10).setAttributes( {some list} );
layer->select( request );
A big +1 from me
- Nathan
On Fri, Oct 28, 2011 at 3:07 AM, Martin Dobias <[email protected]> wrote:
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer