ST_ChunkWidth

更新时间:
复制 MD 格式

Returns the tile width of the specified 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 value in pixels.

Example

Query the tile width of a raster object:

SELECT ST_ChunkWidth(rast) AS chunk_width
FROM raster_table;

Example output:

 chunk_width
-------------
         256