All Products
Search
Document Center

ApsaraDB RDS:ST_SetSkew

Last Updated:Sep 05, 2023

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

Parameter

Description

raster_obj

The name of the raster object.

skewX

The skew of the raster object on the X scale.

skewY

The skew of the raster object on the Y scale.

skewXY

The skew of the raster object on the X and Y scales. This parameter specifies the same skew on the X and Y scales.

Examples

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;

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