PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ rt_band_reclass_round_integer()

static double rt_band_reclass_round_integer ( rt_pixtype  pixtype,
double  nv 
)
inlinestatic

Definition at line 38 of file rt_mapalgebra.c.

39 {
40  switch (pixtype) {
41  case PT_1BB:
42  case PT_2BUI:
43  case PT_4BUI:
44  case PT_8BSI:
45  case PT_8BUI:
46  case PT_16BSI:
47  case PT_16BUI:
48  case PT_32BSI:
49  case PT_32BUI:
50  return round(nv);
51  default:
52  return nv;
53  }
54 }
@ PT_32BUI
Definition: librtcore.h:196
@ PT_2BUI
Definition: librtcore.h:189
@ PT_32BSI
Definition: librtcore.h:195
@ PT_4BUI
Definition: librtcore.h:190
@ PT_1BB
Definition: librtcore.h:188
@ PT_16BUI
Definition: librtcore.h:194
@ PT_8BSI
Definition: librtcore.h:191
@ PT_16BSI
Definition: librtcore.h:193
@ PT_8BUI
Definition: librtcore.h:192

References PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BSI, PT_32BUI, PT_4BUI, PT_8BSI, and PT_8BUI.

Referenced by rt_band_reclass(), and rt_band_reclass_exact().

Here is the caller graph for this function: