PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_pixtype_name()

const char* rt_pixtype_name ( rt_pixtype  pixtype)

Definition at line 110 of file rt_pixel.c.

110  {
111  switch (pixtype) {
112  case PT_1BB:
113  return "1BB";
114  case PT_2BUI:
115  return "2BUI";
116  case PT_4BUI:
117  return "4BUI";
118  case PT_8BSI:
119  return "8BSI";
120  case PT_8BUI:
121  return "8BUI";
122  case PT_16BSI:
123  return "16BSI";
124  case PT_16BUI:
125  return "16BUI";
126  case PT_32BSI:
127  return "32BSI";
128  case PT_32BUI:
129  return "32BUI";
130  case PT_32BF:
131  return "32BF";
132  case PT_64BF:
133  return "64BF";
134  default:
135  rterror("rt_pixtype_name: Unknown pixeltype %d", pixtype);
136  return "Unknown";
137  }
138 }
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:199
@ PT_32BUI
Definition: librtcore.h:194
@ PT_2BUI
Definition: librtcore.h:187
@ PT_32BSI
Definition: librtcore.h:193
@ PT_4BUI
Definition: librtcore.h:188
@ PT_32BF
Definition: librtcore.h:195
@ PT_1BB
Definition: librtcore.h:186
@ PT_16BUI
Definition: librtcore.h:192
@ PT_8BSI
Definition: librtcore.h:189
@ PT_16BSI
Definition: librtcore.h:191
@ PT_64BF
Definition: librtcore.h:196
@ PT_8BUI
Definition: librtcore.h:190

References PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, and rterror().

Referenced by RASTER_addBand(), RASTER_bandmetadata(), RASTER_getBandPixelTypeName(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_nMapAlgebra(), RASTER_nMapAlgebraExpr(), RASTER_union_finalfn(), RASTER_union_transfn(), rt_band_from_wkb(), rt_band_get_nearest_pixel(), rt_band_new_inline(), rt_band_new_offline(), rt_band_set_nodata(), rt_pixtype_size(), rt_raster_deserialize(), rt_util_dbl_trunc_warning(), and test_pixtype_name().

Here is the call graph for this function:
Here is the caller graph for this function: