All Products
Search
Document Center

PolarDB:ST_PixelHeight

Last Updated:Mar 28, 2026

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

Syntax

float8 ST_PixelHeight(raster raster_obj)

Parameters

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

ST_PixelHeight

Examples

select st_pixelwidth(rast), st_pixelheight(rast)
from raster_table;

 st_pixelwidth | st_pixelheight
---------------+----------------
            60 |             60