Skip to content

Commit

Permalink
Update rotate function help for optional center point
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 2, 2020
1 parent 0d4e4b9 commit d8645f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/function_help/json/rotate
Expand Up @@ -4,7 +4,8 @@
"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"}
{"arg":"point", "optional":true,"description":"rotation center point. If not specified, the center of the geometry's bounding box is used."}
],
"examples": [ { "expression":"rotate($geometry, 45, centroid($geometry))", "returns":"a rotated geometry of the same type as the original one"}]
"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"}]
}

0 comments on commit d8645f5

Please sign in to comment.