ST_ChunkWidth

更新时间:
复制 MD 格式

Returns the tile width of a raster object, measured in pixels.

Syntax

integer ST_ChunkWidth(raster raster_obj)

Parameters

ParameterDescription
raster_objThe raster object to query.

Description

ST_ChunkWidth returns the tile width of the specified raster object as an integer number of pixels.

Examples

Query the tile width of all rasters in a table:

SELECT ST_ChunkWidth(rast)
FROM raster_table;

Result:

 st_chunkwidth
--------------
           256