Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add details to project expression and fix example
- Loading branch information
1 parent
53f94bc
commit ae45af5
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)"} | ||
] | ||
} |