ST_Azimuth — Returns the azimuth between two points.
geometry ST_Azimuth(bytea
PointA, bytea
PointB);
Returns the azimuth between two points. Azimuth is defined as a horizontal angle measured clockwise from North to a base direction line. The azimuth angle is returned in radians.
![]() | |
Input geometries must be points. |
| 2D | 3D | M |
|---|---|---|
![]() | - | - |
| OGC SFS for SQL. 1.1 (1999) | OGC SFS for SQL. 1.1.0 (2005) | OGC SFS for SQL. 1.2.0 (2006) | SQL-MM Part 3 |
|---|---|---|---|
| - | - | - | - |