ST_Azimuth¶
Returns the azimuth between two points in radians, or NULL if not available.
Usage¶
double ST_Azimuth(geomA: geometry, geomB: geometry)
Arguments¶
- geomA (geometry): Input geometry
- geomB (geometry): Input geometry
Description¶
Returns the azimuth (angle) from the first point to the second point, measured in radians clockwise from north. Returns NULL if either input is not a point.
Examples¶
SELECT ST_Azimuth(ST_Point(0.0, 25.0), ST_Point(0.0, 0.0));
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_azimuth(st_point(Float64(0),Float64(25)),st_point(Float64(0),Float64(0))) │
│ float64 │
╞══════════════════════════════════════════════════════════════════════════════╡
│ 3.141592653589793 │
└──────────────────────────────────────────────────────────────────────────────┘