Wednesday 16 May 2018

qgis - Is it possible to sort the features by an attribute programmatically?


I have written a PyQGIS script that loops through an attribute table and finds duplicated values in a target attribute field.


My technique requires that the attribute table is first sorted by the target field.


Is that possible with PyQGIS? I've only been able to have the table sorted by the row number.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...