ST_Width

更新时间:
复制 MD 格式

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