Skip to main content
Rotates a geometry by a specified angle in radians counter-clockwise around a given origin point. The origin for rotation can be specified as either a POINT geometry or x and y coordinates. If the origin is not specified, the geometry is rotated around POINT(0 0). ST_Rotate

Signatures

Parameters

geometry
Geometry
required
The input geometry.
angle
Double
required
The angle value.
originX
Double
The origin x value.
originY
Double
The origin y value.
pointOrigin
Geometry
The point origin value.

Return type

The resulting geometry.

Example