[postgis-users] Distance() vs ? - performance
David Blasby
dblasby at refractions.net
Fri Feb 13 14:18:20 PST 2004
Tyler Mitchell wrote:
>
> I'm doing some basic computing of distance between geometries and I've
> traditionally used Distance() to give me what I want. With geos
> integration is there a different, higher performance option for me to use?
> Suggestions?
no - distance() will be much quicker than using GEOS.
But, the distance() function may give you very slightly wrong answers
for geometries that are just barely disjoint, just touching, or just
overlapping.
The geos functions (like relate) will always give you the correct answer.
dave
More information about the postgis-users
mailing list