PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ PG_FUNCTION_INFO_V1() [19/26]

PG_FUNCTION_INFO_V1 ( RASTER_setRotation  )

Set the rotation of the raster.

This method will change the X Scale, Y Scale, X Skew and Y Skew properties all at once to keep the rotations about the X and Y axis uniform.

This method will set the rotation about the X axis and Y axis based on the pixel size. This pixel size may not be uniform if rasters have different skew values (the raster cells are diamond-shaped). If a raster has different skew values has a rotation set upon it, this method will remove the diamond distortions of the cells, as each axis will have the same rotation.