ST_SetNoData

更新时间:
复制 MD 格式

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)