Definition at line 934 of file rt_api.c.
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().
951 if (fabs(checkvalint - initialvalue) >= 1) {
952 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
953 rtwarn(
"Value set for %s band got clamped from %f to %d",
955 initialvalue, checkvalint
960 else if (
FLT_NEQ(checkvalint, initialvalue)) {
961 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
962 rtwarn(
"Value set for %s band got truncated from %f to %d",
964 initialvalue, checkvalint
972 if (fabs(checkvaluint - initialvalue) >= 1) {
973 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
974 rtwarn(
"Value set for %s band got clamped from %f to %u",
976 initialvalue, checkvaluint
981 else if (
FLT_NEQ(checkvaluint, initialvalue)) {
982 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
983 rtwarn(
"Value set for %s band got truncated from %f to %u",
985 initialvalue, checkvaluint
997 if (
FLT_NEQ(checkvalfloat, initialvalue)) {
998 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
999 rtwarn(
"Value set for %s band got converted from %f to %f",
1001 initialvalue, checkvalfloat
1009 if (
FLT_NEQ(checkvaldouble, initialvalue)) {
1010 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
1011 rtwarn(
"Value set for %s band got converted from %f to %f",
1013 initialvalue, checkvaldouble
const char * rt_pixtype_name(rt_pixtype pixtype)
void rtwarn(const char *fmt,...)