All Products
Search
Document Center

ApsaraDB RDS:ST_Width

Last Updated:Mar 28, 2026

Returns the width of a raster in pixels. To get the width of a chunk, see ST_ChunkWidth.

Syntax

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

Parameters

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

Example

select ST_Width(raster_obj) from raster_table;
---------------------------------------------
10060

See also

ST_Height