mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
13 lines
809 B
Plaintext
13 lines
809 B
Plaintext
{
|
|
"name": "rotate",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns a rotated version of a geometry. Calculations are in the Spatial Reference System of this geometry.",
|
|
"arguments": [ {"arg":"geometry","description":"a geometry"},
|
|
{"arg":"rotation","description":"clockwise rotation in degrees"},
|
|
{"arg":"center", "optional":true,"description":"rotation center point. If not specified, the center of the geometry's bounding box is used."}
|
|
],
|
|
"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"}]
|
|
}
|