> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Rotate (Python)

> Return a counter-clockwise rotated geometry along the specified origin.

Return a counter-clockwise rotated geometry along the specified origin.

SQL reference: [`ST_Rotate`](/reference/wherobots-db/geometry-data/affine-transformations/ST_Rotate)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_Rotate

ST_Rotate(
    geometry: ColumnOrName,
    angle: Union[ColumnOrName, float],
    originX: Optional[Union[ColumnOrName, float]] = None,
    originY: Optional[Union[ColumnOrName, float]] = None,
    pointOrigin: Optional[ColumnOrName] = None,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column or name.
</ParamField>

<ParamField path="angle" type="Union[ColumnOrName, float]" required>
  Rotation angle in radians.
</ParamField>

<ParamField path="originX" type="Optional[Union[ColumnOrName, float]]" default="None">
  Optional x-coordinate of the origin.
</ParamField>

<ParamField path="originY" type="Optional[Union[ColumnOrName, float]]" default="None">
  Optional y-coordinate of the origin.
</ParamField>

<ParamField path="pointOrigin" type="Optional[ColumnOrName]" default="None">
  Optional origin point for rotation.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Returns the rotated geometry.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.