PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_util_clamp_to_16BSI()

int16_t rt_util_clamp_to_16BSI ( double  value)

Definition at line 61 of file rt_util.c.

61 {
62 return (int16_t)fmin(fmax((value), SHRT_MIN), SHRT_MAX);
63}

Referenced by rt_band_corrected_clamped_value(), rt_band_init_value(), rt_band_set_nodata(), rt_band_set_pixel(), rt_pixtype_compare_clamped_values(), rt_pixtype_get_min_value(), rt_raster_to_gdal_mem(), and test_pixtype_get_min_value().

Here is the caller graph for this function: