2017-04-27 10:25:29 +10:00

17 lines
1.0 KiB
Plaintext

{
"name": "make_ellipse",
"type": "function",
"description": "Creates an elliptical polygon.",
"variableLenArguments": true,
"arguments": [
{"arg":"center", "description": "center point of the ellipse"},
{"arg":"semi-major axis", "description": "semi-major axis of the ellipse"},
{"arg":"semi-minor axis", "description": "semi-minor axis of the ellipse"},
{"arg":"azimuth", "description": "orientation of the ellipse"},
{"arg":"segment", "description": "optional argument for polygon segmentation. By default this value is 36"}],
"examples": [ { "expression":"geom_to_wkt(make_ellipse(make_point(10,10), 5, 2, 90, 4))", "returns":"'Polygon ((15 10, 10 8, 5 10, 10 12, 15 10))'"},
{ "expression":"geom_to_wkt(make_circle(make_point(10,10,5), 5, 2, 90, 4))", "returns":"'Polygon ((15 10 5, 10 8 5, 5 10 5, 10 12 5, 15 10 5))'"},
{ "expression":"geom_to_wkt(make_circle(make_point(10,10,5,30), 5, 2, 90, 4))", "returns":"'Polygon ((15 10 5 30, 10 8 5 30, 5 10 5 30, 10 12 5 30, 15 10 5 30))'"}
]
}