2

I have a point layer in QGIS. The points have a distance attribute to a fixed point. I would like to select the three points with the shortest distance by an expression.

I want to do it by expression because I want to use this expression in some code I will use in PyQGIS.

The minimum function doesn't work over different features, so I am not sure how to do this.

  • I am not a expert in python but, I think what you are looking for here is a if than statement – Reisenrich Jan 9 '18 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.