PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_util_clamp_to_32F()

float rt_util_clamp_to_32F ( double  value)

Definition at line 79 of file rt_util.c.

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

79  {
80  return (float)fmin(fmax((value), -FLT_MAX), FLT_MAX);
81 }
int value
Definition: genraster.py:61
Here is the caller graph for this function: