Returns the number of bands for a tile of the specified raster object.
Syntax
integer ST_ChunkBands(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The 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