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
| Parameter | Description |
|---|---|
raster_obj | The raster whose width you want to get. |
pyramid | The pyramid level at which the raster resides. Valid values start from 0. |
Example
select ST_Width(raster_obj) from raster_table;
---------------------------------------------
10060