|
4 | 4 | "description": "Creates an elliptical polygon.",
|
5 | 5 | "variableLenArguments": true,
|
6 | 6 | "arguments": [
|
7 |
| - {"arg":"center", "description": "center point of the ellipse"}, |
8 |
| - {"arg":"semi_major_axis", "description": "semi-major axis of the ellipse"}, |
9 |
| - {"arg":"semi_minor_axis", "description": "semi-minor axis of the ellipse"}, |
10 |
| - {"arg":"azimuth", "description": "orientation of the ellipse"}, |
11 |
| - {"arg":"segment", "description": "optional argument for polygon segmentation. By default this value is 36"}], |
12 |
| - "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))'"}, |
| 7 | + {"arg":"center", "description": "center point of the ellipse"}, |
| 8 | + {"arg":"semi_major_axis", "description": "semi-major axis of the ellipse"}, |
| 9 | + {"arg":"semi_minor_axis", "description": "semi-minor axis of the ellipse"}, |
| 10 | + {"arg":"azimuth", "description": "orientation of the ellipse"}, |
| 11 | + {"arg":"segment", "optional": true, "default": "36", "description": "optional argument for polygon segmentation. By default this value is 36"} |
| 12 | + ], |
| 13 | + "examples": [ |
| 14 | + { "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))'"}, |
13 | 15 | { "expression":"geom_to_wkt(make_ellipse(make_point(10,10,5), 5, 2, 90, 4))", "returns":"'PolygonZ ((15 10 5, 10 8 5, 5 10 5, 10 12 5, 15 10 5))'"},
|
14 | 16 | { "expression":"geom_to_wkt(make_ellipse(make_point(10,10,5,30), 5, 2, 90, 4))", "returns":"'PolygonZM ((15 10 5 30, 10 8 5 30, 5 10 5 30, 10 12 5 30, 15 10 5 30))'"}
|
15 |
| - ] |
| 17 | + ] |
16 | 18 | }
|
0 commit comments