[Qgis-user] Query on QgsVectorLayer

Christoph Jung jagodki.cj at gmail.com
Thu Apr 9 04:37:41 PDT 2020


Hello everyone,

I have a question concerning PyQGIS. Imagine there is a point layer accessed via QgsVectorLayer, i.e. no matter which data source it is. Is it possible to query this layer to get the point object with the highest/lowest x-value in its geometry (similar to max-/min-aggregate functions in SQL)? Or do  I have to iterate over all objects and compare the values by my own?

Sincerely,
Christoph


More information about the Qgis-user mailing list