From 0dcea18929e4d503424e3bc7acb4ab8f456c2126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Fri, 23 Feb 2018 14:30:26 +0100 Subject: [PATCH] Add missing make_triangle function help. Fix #16406 --- resources/function_help/json/make_triangle | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 resources/function_help/json/make_triangle diff --git a/resources/function_help/json/make_triangle b/resources/function_help/json/make_triangle new file mode 100644 index 00000000000..a9593d25fbc --- /dev/null +++ b/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)'"} + ] +}