2019-11-26 21:42:37 +01:00
|
|
|
{
|
|
|
|
"name": "rotate",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2019-11-26 21:42:37 +01:00
|
|
|
"description": "Returns a rotated version of a geometry. Calculations are in the Spatial Reference System of this geometry.",
|
2020-07-29 17:39:43 +02:00
|
|
|
"arguments": [ {"arg":"geometry","description":"a geometry"},
|
2019-11-26 21:42:37 +01:00
|
|
|
{"arg":"rotation","description":"clockwise rotation in degrees"},
|
2020-08-14 17:58:07 +02:00
|
|
|
{"arg":"center", "optional":true,"description":"rotation center point. If not specified, the center of the geometry's bounding box is used."}
|
2019-11-26 21:42:37 +01:00
|
|
|
],
|
2020-01-02 12:04:40 +10:00
|
|
|
"examples": [ { "expression":"rotate($geometry, 45, make_point(4, 5))", "returns":"geometry rotated 45 degrees clockwise around the (4, 5) point"},
|
|
|
|
{ "expression":"rotate($geometry, 45)", "returns":"geometry rotated 45 degrees clockwise around the center of its bounding box"}]
|
2019-11-26 21:42:37 +01:00
|
|
|
}
|