ST_Height

更新时间:
复制 MD 格式

Returns the height of a raster object.

Syntax

integer ST_Height(raster raster_obj);
integer ST_Height(raster raster_obj, integer pyramid)

Parameters

ParameterDescription
raster_objThe raster whose height you want to obtain.
pyramidThe pyramid level at which the raster resides. Valid values start from 0.

Return value

Returns an integer representing the height of the raster.

Examples

Get the height of all rasters in a table:

select ST_Height(raster_obj) from raster_table;

Get the height of a raster at pyramid level 2:

select ST_Height(raster_obj, 2) from raster_table;