|
Geometry : |
Subject: Re: [geometry] distance and comparable_distance
From: Barend Gehrels (barend_at_[hidden])
Date: 2012-11-17 11:04:06
Hi Jeff,
On 7-11-2012 18:41, jeffpoly wrote:
>
> I am using the distance and comparable_distance to calculate the distance
> between a point and linestring in Cartesian coordinate system, I got the
> same value (the distance is not 1.0). From the document, the
> comparable_distance is the square distance and distance is the real
> distance, am I wrong?
>
Sorry for my delay in replying.
Yes, the comparable_distance should certainly return the square distance
for cartesian coordinates. In my programs, it does so. Can you send a
minimal example showing where it goes wrong?
Thanks, Barend
Geometry list run by mateusz at loskot.net