All Products
Search
Document Center

ApsaraDB RDS:ST_SetSkew

Last Updated:Mar 28, 2026

Configures the skews of a raster object on the X and Y scales in the spatial reference system.

Syntax

rasterST_SetSkew(raster raster_obj, float8 skewX, float8 skewY)
rasterST_SetSkew(raster raster_obj, float8 skewXY)

Parameters

ParameterTypeDescription
raster_objrasterThe raster object to modify.
skewXfloat8The skew along the X axis.
skewYfloat8The skew along the Y axis.
skewXYfloat8The skew to apply to both the X and Y axes.

Examples

Example 1: Set X and Y skews independently

UPDATE raster_table
SET raster_obj = ST_SetSkew(raster_obj, 0.3, 0.6)
WHERE id = 2;

SELECT st_skewx(raster_obj), st_skewy(raster_obj)
FROM raster_table
WHERE id = 2;

Expected output:

 st_skewx | st_skewy
----------+----------
      0.3 |      0.6