Skip to content

Commit

Permalink
Add details to project expression and fix example
Browse files Browse the repository at this point in the history
(cherry picked from commit ae45af5)
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 16, 2020
1 parent 0e73f44 commit 8ed9847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/function_help/json/project
@@ -1,14 +1,14 @@
{
"name": "project",
"type": "function",
"description": "Returns a point projected from a start point using a distance and bearing (azimuth) in radians.",
"description": "Returns a point projected from a start point using a distance, a bearing (azimuth) and an elevation in radians.",
"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":"project(make_point(1, 2), 3, radians(270))", "returns":"Point(-2, 2)"}
{ "expression":"geom_to_wkt(project(make_point(1, 2), 3, radians(270)))", "returns":"Point(-2, 2)"}
]
}

0 comments on commit 8ed9847

Please sign in to comment.