All Products
Search
Document Center

PolarDB:ST_SkewY

Last Updated:Mar 28, 2026

Returns the Y skew (rotation parameter) of a raster object in its spatial reference system. The Y skew is part of the affine transformation matrix that defines the georeferencing of the raster. For background on how skew values relate to world files, see World file.

Prerequisites

The raster object must have a valid Spatial Reference Identifier (SRID).

Syntax

float8 ST_SkewY(raster raster_obj)

Parameters

ParameterDescription
raster_objThe raster object to query.

Examples

SELECT ST_SkewX(rast) AS skewx,
       ST_SkewY(rast) AS skewy
FROM raster_table;

Sample output:

 skewx | skewy
-------+-------
   0.3 |   0.2

What's next

  • ST_SkewX: returns the X skew of a raster object

  • ST_SetSkew: sets the skew values of a raster object