Definition at line 676 of file rt_util.c.
693 if (fabs(checkvalint - initialvalue) >= 1) {
694 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
695 rtwarn(
"Value set for %s band got clamped from %f to %d",
697 initialvalue, checkvalint
702 else if (checkvalint != initialvalue)
704 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
705 rtwarn(
"Value set for %s band got truncated from %f to %d",
707 initialvalue, checkvalint
715 if (fabs(checkvaluint - initialvalue) >= 1) {
716 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
717 rtwarn(
"Value set for %s band got clamped from %f to %u",
719 initialvalue, checkvaluint
724 else if (checkvaluint != initialvalue)
726 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
727 rtwarn(
"Value set for %s band got truncated from %f to %u",
729 initialvalue, checkvaluint
741 if (
FLT_NEQ(checkvalfloat, initialvalue)) {
742 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
743 rtwarn(
"Value set for %s band got converted from %f to %f",
745 initialvalue, checkvalfloat
753 if (
FLT_NEQ(checkvaldouble, initialvalue)) {
754 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
755 rtwarn(
"Value set for %s band got converted from %f to %f",
757 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().