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 | Type | Description |
|---|---|---|
raster_obj | raster | The raster object to modify. |
skewX | float8 | The skew along the X axis. |
skewY | float8 | The skew along the Y axis. |
skewXY | float8 | The 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