Maybe you can also try to simplify the geometry using X as the tolerance. http://postgis.net/docs/manual-1.4/ST_Simplify.html On 25/01/2015 12:54, Dave Barter wrote: > KNN distance