I'm working with polygon outputs of an algorithm, where each polygon has a (seemingly) random ID (that is due to some internal logic of the algorithm).
I'd like to assign spatially meaningful IDs: A unique ID for each polygon that is based on the location of each polygon within the dataset, going from North to South and East to West (i.e. the Northeastern-most polygon gets the ID 1, the next in Southwest-direction gets ID 2, 3, ... and so forth).
Is there a tool in QGIS for "spatially sensitive sequential numbering"?
I have some ideas how to do it "programmatically" (e.g. extract coordinates of each polygon extent (upper left corner) and sort by these coordinates, then do a sequential numbering), but I'm hoping there are built-in functions for this...