PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_util_clamp_to_32BUI()

uint32_t rt_util_clamp_to_32BUI ( double  value)

Definition at line 74 of file rt_util.c.

74  {
75  return (uint32_t)fmin(fmax((value), 0), UINT_MAX);
76 }
int value
Definition: genraster.py:61
unsigned int uint32_t
Definition: uthash.h:78

References genraster::value.

Referenced by rt_band_corrected_clamped_value(), rt_band_reclass(), rt_band_set_nodata(), rt_band_set_pixel(), rt_pixtype_compare_clamped_values(), rt_raster_generate_new_band(), and test_pixtype_get_min_value().

Here is the caller graph for this function: