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
| Parameter | Description |
|---|---|
raster_obj | The raster object to query. |
pyramid | The pyramid level of the raster. Valid values start from 0. |
Example
SELECT ST_Width(raster_obj) AS rastwidth FROM raster_table;Output:
rastwidth
-----------
10060See also
[ST_Height](): Returns the height of a raster in pixels.
[ST_ChunkWidth](): Returns the width of a chunk in pixels.
该文章对您有帮助吗?