Yes, that is all the magic there is to the "distance is faster" assertion. Obviously it's only faster for cases where there are lots of fully contained candidates that return immediately on the first point test.

P

On 25-Oct-07, at 4:24 AM, Obe, Regina wrote:

Am I safe in saying that distance treats the case of distance() == 0 as
a special case - e.g. you can't get lower than 0 for distance so there
is no point in checking any further?

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to