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 to query. |
Return value
A text string representing the pixel type of the raster object. The following pixel types are supported:
| Value | Description |
|---|---|
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 stored in raster_table:
SELECT ST_CellType(raster_obj) FROM raster_table;Output:
8BUIIs this page helpful?