[postgis-users] degrees between points

Nicolas Ribot nicky666 at gmail.com
Wed Jan 16 09:01:41 PST 2008


On 16/01/2008, Nicholas Lan <Nicholas.Lan at ursaminor.nl> wrote:
> I was under the impression that using srid 4326 meant that point coordinates
> would correspond to latitude and longitude on a spheroid such that
> st_distance(...) between two such points would give the angle between them,
> hence 90 in this case. As you say, st_distance is treating these points as
> cartesian coordinates, giving 127. I guess I've got the wrong idea
> somewhere.
>

The following function seems to be the one:

ST_azimuth(geometry, geometry)
Returns the azimuth of the segment defined by the given Point
geometries, or NULL if the two points are coincident. Return value is
in radians.

Availability: 1.1.0

Nicolas



More information about the postgis-users mailing list