mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-06 00:03:16 -05:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
{
|
|
"name": "bearing",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns the north-based bearing as the angle in radians measured clockwise on the ellipsoid from the vertical on point_a to point_b.",
|
|
"arguments": [{
|
|
"arg": "point_a",
|
|
"description": "point geometry"
|
|
}, {
|
|
"arg": "point_b",
|
|
"description": "point geometry"
|
|
}, {
|
|
"arg": "source_auth_id",
|
|
"description": "the source auth CRS ID of the points"
|
|
}, {
|
|
"arg": "ellipsoid",
|
|
"description": "the acronym or the auth ID of the ellipsoid"
|
|
}],
|
|
"examples": [{
|
|
"expression": "degrees( bearing( make_point(16198544, -4534850), make_point(18736872, -1877769), 'EPSG:3857', 'EPSG:7030') )",
|
|
"returns": "49.980071"
|
|
}, {
|
|
"expression": "degrees( bearing( make_point(18736872, -1877769), make_point(16198544, -4534850), 'EPSG:3857', 'EPSG:7030') )",
|
|
"returns": "219.282386"
|
|
}],
|
|
"tags": ["measured", "clockwise", "points", "angle", "vertical", "north", "azimuth", "bearing", "radians"]
|
|
}
|