ST_SkewX

Updated at:
Copy as MD

Returns the skew of a raster object along the X axis 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 raster object to query.

Examples

Query the X-axis and Y-axis skew values 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