All Products
Search
Document Center

PolarDB:ST_SkewX

Last Updated:Mar 28, 2026

Returns the X-axis skew of a raster object in the spatial reference system.

Prerequisites

The raster object must have a valid spatial reference system identifier (SRID).

Syntax

float8 ST_SkewX(raster raster_obj)

Parameters

ParameterDescription
raster_objThe name of the raster object.

Examples

Query the X-axis and Y-axis skew coefficients of all rasters in a table:

SELECT ST_SkewX(rast), ST_SkewY(rast)
FROM raster_table;

Output:

 st_skewx | st_skewy
----------+----------
      0.3 |      0.2