Skip to content

ST_RotateY

Rotates a geometry around the Y axis by an angle in radians.

Usage

geometry ST_RotateY(geom: geometry, rot: double)

Arguments

  • geom (geometry): Input geometry
  • rot (double)

Examples

SELECT ST_RotateY(ST_GeomFromText('POINT Z (1 0 0)'), radians(90));
┌─────────────────────────────────────────────────────────────────────────┐
│ st_rotatey(st_geomfromtext(Utf8("POINT Z (1 0 0)")),radians(Int64(90))) │
│                                 geometry                                │
╞═════════════════════════════════════════════════════════════════════════╡
│ POINT Z(0.00000000000000006123233995736766 0 -1)                        │
└─────────────────────────────────────────────────────────────────────────┘