Returns TRUE if the band is only nodata values.
- Parameters
-
band | : the band to get info from |
- Returns
- TRUE if the band is only nodata values, FALSE otherwise
Definition at line 2060 of file rt_band.c.
2065 assert(NULL !=
band);
2069 if (!
band->hasnodata) {
2074 pxValue =
band->nodataval;
2077 for (i = 0; i <
band->width; i++) {
2078 for (j = 0; j <
band->height; j++) {
2081 rterror(
"rt_band_check_is_nodata: Cannot get band pixel");
2084 else if (!isnodata) {
void rterror(const char *fmt,...) __attribute__((format(printf
Wrappers used for reporting errors and info.
#define RASTER_DEBUG(level, msg)
rt_errorstate rt_band_get_pixel(rt_band band, int x, int y, double *value, int *nodata)
Get pixel value.
References ovdump::band, ES_NONE, FALSE, RASTER_DEBUG, rt_band_get_pixel(), rterror(), and TRUE.
Referenced by RASTER_bandIsNoData(), RASTER_setBandNoDataValue(), test_band_metadata(), test_band_new_offline_from_path(), and test_raster_to_gdal().