Returns the pixel height of a raster object in the spatial reference system.
Syntax
float8 ST_PixelHeight(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The name of the raster object. |
Description
The red area in the figure below shows the pixel height of the raster object. When the skew of the raster object is 0, the pixel height equals the Y scale.

Examples
select st_pixelwidth(rast), st_pixelheight(rast)
from raster_table;
st_pixelwidth | st_pixelheight
---------------+----------------
60 | 60