Good thinking Martin,<div><br><div>QgsFeatureRequest request;</div><div>request.setExpression( "type = 5 and $area > 100" );</div><div>request.setLimit(10)<br>layer->select( request );</div><div><br></div><div>
I really like this API style. We can add methods to QgsFeatureRequest for better access without busting the select API, which is good imo.</div><div><br></div><div>Could even have the setMethods return the QgsFeatureRequest instance so you could do.</div>
<div><br></div><div><div>QgsFeatureRequest request;</div><div>request.setExpression( "type = 5 and $area > 100" ).setLimit(10).setAttributes( {some list} );</div><div>layer->select( request );</div></div>
<div>
<br></div><div>A big +1 from me</div><div><br></div><div>- Nathan </div><div><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 3:07 AM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":91"></div></blockquote></div><br></div></div>