ST_SetNoData

更新时间: 2026-03-28 03:25:52

Sets the NoData value for a specified band of a raster object.

Syntax

raster ST_SetNoData(raster rast, integer band_sn, double nodata_value);

Parameters

ParameterDescription
rastThe raster object.
band_snThe band number, starting from 0. Set to -1 to apply the NoData value to all bands.
nodata_valueThe NoData value to set for the band.

Examples

Set the NoData value of band 0 to 999.999:

UPDATE rast SET rast = ST_SetNoData(rast, 0, 999.999);

Output:

(1 row)
上一篇: ST_NoData 下一篇: ST_ColorTable
阿里云首页 云原生数据库 PolarDB 相关技术圈