Definition at line 627 of file rt_util.c.
644 if (fabs(checkvalint - initialvalue) >= 1) {
645 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
646 rtwarn(
"Value set for %s band got clamped from %f to %d",
648 initialvalue, checkvalint
653 else if (
FLT_NEQ(checkvalint, initialvalue)) {
654 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
655 rtwarn(
"Value set for %s band got truncated from %f to %d",
657 initialvalue, checkvalint
665 if (fabs(checkvaluint - initialvalue) >= 1) {
666 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
667 rtwarn(
"Value set for %s band got clamped from %f to %u",
669 initialvalue, checkvaluint
674 else if (
FLT_NEQ(checkvaluint, initialvalue)) {
675 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
676 rtwarn(
"Value set for %s band got truncated from %f to %u",
678 initialvalue, checkvaluint
690 if (
FLT_NEQ(checkvalfloat, initialvalue)) {
691 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
692 rtwarn(
"Value set for %s band got converted from %f to %f",
694 initialvalue, checkvalfloat
702 if (
FLT_NEQ(checkvaldouble, initialvalue)) {
703 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
704 rtwarn(
"Value set for %s band got converted from %f to %f",
706 initialvalue, checkvaldouble
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, rt_pixtype_name(), and rtwarn().
Referenced by rt_band_reclass(), rt_band_set_nodata(), rt_band_set_pixel(), and rt_raster_generate_new_band().