Definition at line 630 of file rt_util.c.
647 if (fabs(checkvalint - initialvalue) >= 1) {
648 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
649 rtwarn(
"Value set for %s band got clamped from %f to %d",
651 initialvalue, checkvalint
656 else if (checkvalint != initialvalue)
658 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
659 rtwarn(
"Value set for %s band got truncated from %f to %d",
661 initialvalue, checkvalint
669 if (fabs(checkvaluint - initialvalue) >= 1) {
670 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
671 rtwarn(
"Value set for %s band got clamped from %f to %u",
673 initialvalue, checkvaluint
678 else if (checkvaluint != initialvalue)
680 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
681 rtwarn(
"Value set for %s band got truncated from %f to %u",
683 initialvalue, checkvaluint
695 if (
FLT_NEQ(checkvalfloat, initialvalue)) {
696 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
697 rtwarn(
"Value set for %s band got converted from %f to %f",
699 initialvalue, checkvalfloat
707 if (
FLT_NEQ(checkvaldouble, initialvalue)) {
708 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
709 rtwarn(
"Value set for %s band got converted from %f to %f",
711 initialvalue, checkvaldouble
char result[OUT_DOUBLE_BUFFER_SIZE]
void rtwarn(const char *fmt,...)
const char * rt_pixtype_name(rt_pixtype pixtype)
References FLT_NEQ, PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, PT_END, result, rt_pixtype_name(), and rtwarn().
Referenced by rt_band_reclass(), rt_band_set_nodata(), rt_band_set_pixel(), and rt_raster_generate_new_band().