Hi, <br>I'm a very new PostGIS user but I need to solve a somewhat complex filtering problem (anyway I think its complex...)<br><br>I have around 300,000 points, each with a lat, lon and altitude (also converted to geometry). I need to get a subset of those points, where none of them are within 5m (or some other arbitrary distance) of each other. It doesnt matter which points get picked over another, as long as whatever the data set it creates, that none of the points are within that 5m radius and that relatively most of the points are used (the points are scattered across a 20km<font size="2"> squared area)</font>. I have other data like a timestamp for each point so I can give priority to the more recently created points, if that helps as a starting point. If it makes it any easier, the altitude can be ignored and we can treat it as a set of points on a 2D plane. <br>
But how would I go about doing this? I really have no idea where to start. What would the SQL query look like? Any help would be appreciated, thanks!<br><br>-Oliver<br>