All Products
Search
Document Center

ApsaraDB RDS:ST_PixelHeight

Last Updated:Mar 28, 2026

Returns the pixel height of a raster object in the spatial reference system (SRS).

Syntax

float8 ST_PixelHeight(raster raster_obj)

Parameters

ParameterDescription
raster_objThe 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.

ST_PixelHeight

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

See also