[postgis-users] Nearest linestring given a point, a tolerance and a set of linestrings?

=?utf-8?Q?Nicklas_Av=E9n?= nicklas.aven at jordogskog.no
Wed Jan 23 06:14:58 PST 2013


>> Second and very important
>> Using KNN distance as you do will not always give you the right answer since
>> the <-> operator only works on the center of the bounding box, not the
>> geoemetry itself. So another geometry with the bbox-center much more far
>> away can come much closer than the one you have found. In this case it
>> happened to be the same and give correct result.
>
>Yes, but I think one could use <#> instead of <-> (if newest release
>is available):


No, <#> calculates against the whole bounding box, still not the real geometry. 


/Nicklas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130123/c5163bf6/attachment.html>


More information about the postgis-users mailing list