ST_CellType
Updated at:
Copy as MD
Returns the pixel type of a raster object.
Syntax
text ST_CellType(raster raster_obj);Parameters
| Parameter | Description |
|---|---|
raster_obj | The raster object. |
Pixel types
ST_CellType returns one of the following values:
| Value | Bit depth | Data type |
|---|---|---|
8BSI | 8-bit | Signed integer |
8BUI | 8-bit | Unsigned integer |
16BSI | 16-bit | Signed integer |
16BUI | 16-bit | Unsigned integer |
32BSI | 32-bit | Signed integer |
32BUI | 32-bit | Unsigned integer |
32BF | 32-bit | Floating point |
64BF | 64-bit | Floating point |
Examples
Query the pixel type of a raster object:
select st_celltype(raster_obj) from raster_table;Output:
8BUIWhat's next
ST_NumBands: Get the number of bands in a raster object.
ST_BandMetaData: Get metadata for a specific raster band.
Is this page helpful?