Definition at line 681 of file rt_util.c.
698 if (fabs(checkvalint - initialvalue) >= 1) {
699 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
700 rtwarn(
"Value set for %s band got clamped from %f to %d",
702 initialvalue, checkvalint
707 else if (checkvalint != initialvalue)
709 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
710 rtwarn(
"Value set for %s band got truncated from %f to %d",
712 initialvalue, checkvalint
720 if (fabs(checkvaluint - initialvalue) >= 1) {
721 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
722 rtwarn(
"Value set for %s band got clamped from %f to %u",
724 initialvalue, checkvaluint
729 else if (checkvaluint != initialvalue)
731 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
732 rtwarn(
"Value set for %s band got truncated from %f to %u",
734 initialvalue, checkvaluint
746 if (
FLT_NEQ(checkvalfloat, initialvalue)) {
747 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
748 rtwarn(
"Value set for %s band got converted from %f to %f",
750 initialvalue, checkvalfloat
758 if (
FLT_NEQ(checkvaldouble, initialvalue)) {
759 #if POSTGIS_RASTER_WARN_ON_TRUNCATION > 0
760 rtwarn(
"Value set for %s band got converted from %f to %f",
762 initialvalue, checkvaldouble
char result[OUT_DOUBLE_BUFFER_SIZE]
void void void rtwarn(const char *fmt,...) __attribute__((format(printf
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_init_value(), rt_band_set_nodata(), and rt_band_set_pixel().