I have a task which looks pretty nontrivial yet pretty standard.
Let's say, I have a set of points, unevenly distributed on the map (i.e. in some regions there are a lot of points, while in the other regions points are sparse). The points can be sorted by some criterion K. I want to limit selection of point based on criterion K so that those points would be distributed relatively evenly. I.e. in the dense regions only really high on K points are shown, while in sparse regions whatever points there are are shown.
It seems to be a pretty standard task: e.g. showing cafes by their ranking or the most attractive tourists points of interest. So, I wonder, if there is a standard algorithm for this task (or maybe even a function in PostGIS) that I just not aware of?