ST_Width

更新时间: 2026-03-28 06:18:49

Returns the width of a raster. To get the width of a chunk instead, use 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

Get the width of each raster in a table:

select ST_Width(raster_obj) from raster_table;

Output:

10060
上一篇: ST_MetaData 下一篇: ST_Height
阿里云首页 云原生数据库 PolarDB 相关技术圈