Returns the pixel height of a raster object in the spatial reference system (SRS).
Syntax
float8 ST_PixelHeight(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The raster object to query. |
Description
Pixel height is the size of a pixel along the Y axis in SRS units. The following diagram shows pixel height highlighted in red.

When the raster has no skew, pixel height equals the Y scale.
Examples
select st_pixelwidth(rast), st_pixelheight(rast)
from raster_table; st_pixelwidth | st_pixelheight
---------------+----------------
60 | 60