Raymond Nijssen 933f1cac72 [FEATURE] rotate() expression function
Allows rotation of geometries around a point
2020-01-02 14:45:06 +10:00

11 lines
547 B
Plaintext

{
"name": "rotate",
"type": "function",
"description": "Returns a rotated version of a geometry. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geom","description":"a geometry"},
{"arg":"rotation","description":"clockwise rotation in degrees"},
{"arg":"point","description":"rotation center"}
],
"examples": [ { "expression":"rotate($geometry, 45, centroid($geometry))", "returns":"a rotated geometry of the same type as the original one"}]
}