2017-04-12 14:38:07 +02:00
|
|
|
{
|
|
|
|
"name": "make_circle",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2017-04-12 14:38:07 +02:00
|
|
|
"description": "Creates a circular polygon.",
|
|
|
|
"arguments": [
|
2018-10-25 04:20:23 -04:00
|
|
|
{"arg":"center", "description": "center point of the circle"},
|
|
|
|
{"arg":"radius", "description": "radius of the circle"},
|
2020-08-13 15:46:47 +02:00
|
|
|
{"arg":"segments", "optional": true, "default": "36", "description": "optional argument for polygon segmentation. By default this value is 36"}
|
2018-10-25 04:20:23 -04:00
|
|
|
],
|
|
|
|
"examples": [
|
|
|
|
{ "expression":"geom_to_wkt(make_circle(make_point(10,10), 5, 4))", "returns":"'Polygon ((10 15, 15 10, 10 5, 5 10, 10 15))'"},
|
2018-05-14 15:13:22 +02:00
|
|
|
{ "expression":"geom_to_wkt(make_circle(make_point(10,10,5), 5, 4))", "returns":"'PolygonZ ((10 15 5, 15 10 5, 10 5 5, 5 10 5, 10 15 5))'"},
|
|
|
|
{ "expression":"geom_to_wkt(make_circle(make_point(10,10,5,30), 5, 4))", "returns":"'PolygonZM ((10 15 5 30, 15 10 5 30, 10 5 5 30, 5 10 5 30, 10 15 5 30))'"}
|
2018-10-25 04:20:23 -04:00
|
|
|
]
|
2017-04-12 14:38:07 +02:00
|
|
|
}
|