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 2089 of file rt_band.c.
2089 {
2090 int i, j, err;
2091 double pxValue;
2092 int isnodata = 0;
2093
2094 assert(NULL != band);
2096
2097
2098 if (!
band->hasnodata) {
2101 }
2102
2103 pxValue =
band->nodataval;
2104
2105
2106 for (i = 0; i <
band->width; i++) {
2107 for (j = 0; j <
band->height; j++) {
2110 rterror(
"rt_band_check_is_nodata: Cannot get band pixel");
2112 }
2113 else if (!isnodata) {
2116 }
2117 }
2118 }
2119
2122}
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 ES_NONE, FALSE, RASTER_DEBUG, rt_band_get_pixel(), rterror(), and TRUE.
Referenced by convert_raster(), RASTER_bandIsNoData(), RASTER_setBandNoDataValue(), test_band_metadata(), test_band_new_offline_from_path(), and test_raster_to_gdal().