PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_band_set_hasnodata_flag()

void rt_band_set_hasnodata_flag ( rt_band  band,
int  flag 
)

Set hasnodata flag value.

Parameters
band: the band on which to set the hasnodata flag
flag: the new hasnodata flag value. Must be 1 or 0.

Definition at line 832 of file rt_band.c.

832 {
833
834 assert(NULL != band);
835
836 band->hasnodata = (flag) ? 1 : 0;
837
838 /* isnodata depends on hasnodata */
839 if (!band->hasnodata && band->isnodata) {
840 RASTER_DEBUG(3, "Setting isnodata to FALSE as band no longer has NODATA");
841 band->isnodata = 0;
842 }
843}
#define RASTER_DEBUG(level, msg)
Definition librtcore.h:302

References RASTER_DEBUG.

Referenced by RASTER_setBandNoDataValue(), and test_band_metadata().

Here is the caller graph for this function: