ST_ChunkBands

更新时间:
复制 MD 格式

Returns the number of bands for a tile of the specified raster object.

Syntax

integer ST_ChunkBands(raster raster_obj)

Parameters

ParameterDescription
raster_objThe name of the raster object.

Examples

Query the number of bands for each row in a raster table:

SELECT ST_ChunkBands(rast)
FROM raster_table;

Output:

 st_chunkbands
----------
      3