Sets the name of a raster object.
Syntax
raster ST_SetName(raster rast, cstring name);Return type: raster — the raster object with the updated name.
Parameters
| Parameter | Type | Description |
|---|---|---|
rast | raster | The raster object to update. |
name | cstring | The name to assign to the raster object. |
Examples
Set the name of the raster with id = 2 to image2:
UPDATE rat SET rast = ST_SetName(rast, 'image2') WHERE id = 2;Output:
(1 row)该文章对您有帮助吗?