Skip to content
Permalink
Browse files

Merge pull request #6438 from lbartoletti/make_triangle

Add missing make_triangle function help. Fixes #16406
  • Loading branch information
nyalldawson committed Feb 23, 2018
2 parents 8eaf0a4 + 0dcea18 commit 84c508938975e651a3d9b04f40f703980bdcd0f9
Showing with 13 additions and 0 deletions.
  1. +13 −0 resources/function_help/json/make_triangle
@@ -0,0 +1,13 @@
{
"name": "make_triangle",
"type": "function",
"description": "Creates a triangle polygon.",
"variableLenArguments": false,
"arguments": [
{"arg":"point 1", "description": "first point of the triangle"},
{"arg":"point 2", "description": "second point of the triangle"},
{"arg":"point 3", "description": "third point of the triangle"}],
"examples": [ { "expression":"geom_to_wkt(make_triangle(make_point(0,0), make_point(5,5), make_point(0,10)))", "returns":"'Triangle ((0 0, 5 5, 0 10, 0 0))'"},
{ "expression":"geom_to_wkt(boundary(make_triangle(make_point(0,0), make_point(5,5), make_point(0,10))))", "returns":"'LineString (0 0, 5 5, 0 10, 0 0)'"}
]
}

0 comments on commit 84c5089

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