I want to iterate over a LineString and apply a filter so that I create a new LineString with those points that succeed in the test. How do I do that?
My goal is to find some outliers that are too far from the rest of the points in the path and remove them from the result. So I would like to measure the distance between each point in the LineString to make sure that they are not too far from each other.
ST_DumpPoints