ST_Width

更新时间:
复制 MD 格式

Returns the width of a raster in pixels. 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 object to query.
pyramidThe pyramid level of the raster. Valid values start from 0.

Example

SELECT ST_Width(raster_obj) AS rastwidth FROM raster_table;

Output:

 rastwidth
-----------
     10060

See also

  • [ST_Height](): Returns the height of a raster in pixels.

  • [ST_ChunkWidth](): Returns the width of a chunk in pixels.