From 11f5b21f45dbc7570ae99403d230a3b3473eff3f Mon Sep 17 00:00:00 2001 From: Furqaanahmed Khan Date: Wed, 25 Oct 2023 18:17:24 -0400 Subject: [PATCH] docs: add docs for RS_Rotation --- docs/api/sql/Raster-operators.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/api/sql/Raster-operators.md b/docs/api/sql/Raster-operators.md index 4bda003051..1d580b9370 100644 --- a/docs/api/sql/Raster-operators.md +++ b/docs/api/sql/Raster-operators.md @@ -352,6 +352,28 @@ Output: 54 ``` +### RS_Rotation + +Introduction: Returns the uniform rotation of the raster in radian. + +Format: `RS_Rotation(raster: Raster)` + +Since: `v1.5.1` + +Spark SQL Example: + +```sql +SELECT RS_Rotation( + RS_MakeEmptyRaster(2, 10, 15, 1, 2, 1, -2, 1, 2, 0) + ) +``` + +Output: + +``` +-1.1071487177940904 +``` + ### RS_ScaleX Introduction: Returns the pixel width of the raster in CRS units.