Returns the pixel size of a raster object along the Y axis in its spatial reference system.
Prerequisites
The raster object must have a valid spatial reference system identifier (SRID).
Syntax
float8 ST_ScaleY(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The name of the raster object. |
Examples
The following example queries the X-axis and Y-axis pixel sizes for all raster objects in raster_table.
select st_scalex(rast), st_scaley(rast)
from raster_table;
st_scalex | st_scaley
-----------+-----------
1.3 | 0.3