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 1752 of file rt_band.c.
1752 {
1753 int i, j, err;
1754 double pxValue;
1755 int isnodata = 0;
1756
1757 assert(NULL != band);
1759
1760
1761 if (!
band->hasnodata) {
1764 }
1765
1766 pxValue =
band->nodataval;
1767
1768
1769 for (i = 0; i <
band->width; i++) {
1770 for (j = 0; j <
band->height; j++) {
1773 rterror(
"rt_band_check_is_nodata: Cannot get band pixel");
1775 }
1776 else if (!isnodata) {
1779 }
1780 }
1781 }
1782
1785}
void rterror(const char *fmt,...)
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().