Skip to main content
Returns true if the band is filled with only nodata values. Band 1 is assumed if not specified.

Signatures

RS_BandIsNoData(raster: Raster, band: Integer = 1)

Parameters

raster
Raster
required
The input raster.
band
Integer
default:"1"
required
The band index.

Return type

Returns true or false.

Example

WITH rast_table AS (SELECT RS_AddBandFromArray(RS_MakeEmptyRaster(1, 2, 2, 0, 0, 1), ARRAY(10d, 10d, 10d, 10d), 1, 10d) as rast)
SELECT RS_BandIsNoData(rast) from rast_table
true