[postgis-users] distance function only supports 2d?

David Blasby dblasby at refractions.net
Wed Feb 4 10:51:00 PST 2004


strk wrote:
> falko.steinmetz wrote:
> 
>>Hi,
>>
>>is it possible, that the distance function only support 2d?
>>I use postgis 0.8.1 and when I calculate the distance between the
>>points 24/33/20 and 0/0/0 I get 40.80 - the distance between
>>24/33 and 0/0.
>>Is this a bug or doesn't the function support 3d points?

distance() is 2d-based.  The 3d extension is non-trivial (just think 
about non-planar polygons).

dave





More information about the postgis-users mailing list