Returns the tile width of the specified raster object, measured in pixels.
Syntax
integer ST_ChunkWidth(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The raster object to query. |
Description
ST_ChunkWidth returns the tile width of the specified raster object as an integer value in pixels.
Example
Query the tile width of a raster object:
SELECT ST_ChunkWidth(rast) AS chunk_width
FROM raster_table;Example output:
chunk_width
-------------
256