Skip to content
Permalink
Browse files

Add details to project expression and fix example

(cherry picked from commit ae45af5)
(cherry picked from commit 8ed9847)
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 4, 2020
1 parent 5240567 commit 43cca03d0c06adc585e5b934c67c488309527981
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 43cca03

Please sign in to comment.
You can’t perform that action at this time.