Skip to content
Permalink
Browse files

Update rotate function help for optional center point

  • Loading branch information
nyalldawson committed Jan 2, 2020
1 parent 0d4e4b9 commit d8645f528510bf708a50fb9209be3f24aa7af63b
Showing with 3 additions and 2 deletions.
  1. +3 −2 resources/function_help/json/rotate
@@ -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.
You can’t perform that action at this time.