2016-04-06 19:22:45 +10:00
|
|
|
{
|
|
|
|
"name": "project",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2020-03-04 17:36:02 +01:00
|
|
|
"description": "Returns a point projected from a start point using a distance, a bearing (azimuth) and an elevation in radians.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "point",
|
|
|
|
"description": "start point"
|
|
|
|
}, {
|
|
|
|
"arg": "distance",
|
|
|
|
"description": "distance to project"
|
|
|
|
}, {
|
|
|
|
"arg": "azimuth",
|
|
|
|
"description": "azimuth in radians clockwise, where 0 corresponds to north"
|
|
|
|
}, {
|
|
|
|
"arg": "elevation",
|
|
|
|
"description": "angle of inclination in radians",
|
|
|
|
"optional": true
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "geom_to_wkt(project(make_point(1, 2), 3, radians(270)))",
|
|
|
|
"returns": "'Point(-2, 2)'"
|
|
|
|
}],
|
|
|
|
"tags": ["distance", "elevation", "projected", "start", "point", "azimuth", "radians", "bearing"]
|
2016-04-06 19:22:45 +10:00
|
|
|
}
|