ST_CellType

Updated at:
Copy as MD

Returns the pixel type of a raster object.

Syntax

text ST_CellType(raster raster_obj);

Parameters

ParameterDescription
raster_objThe raster object.

Pixel types

ST_CellType returns one of the following values:

ValueBit depthData type
8BSI8-bitSigned integer
8BUI8-bitUnsigned integer
16BSI16-bitSigned integer
16BUI16-bitUnsigned integer
32BSI32-bitSigned integer
32BUI32-bitUnsigned integer
32BF32-bitFloating point
64BF64-bitFloating point

Examples

Query the pixel type of a raster object:

select st_celltype(raster_obj) from raster_table;

Output:

8BUI

What's next