PostGIS  3.4.0dev-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 
112 
113  switch (pixtype) {
114  case PT_1BB:
115  return "1BB";
116  case PT_2BUI:
117  return "2BUI";
118  case PT_4BUI:
119  return "4BUI";
120  case PT_8BSI:
121  return "8BSI";
122  case PT_8BUI:
123  return "8BUI";
124  case PT_16BSI:
125  return "16BSI";
126  case PT_16BUI:
127  return "16BUI";
128  case PT_32BSI:
129  return "32BSI";
130  case PT_32BUI:
131  return "32BUI";
132  case PT_32BF:
133  return "32BF";
134  case PT_64BF:
135  return "64BF";
136  default:
137  rterror("rt_pixtype_name: Unknown pixeltype %d", pixtype);
138  return "Unknown";
139  }
140 }
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:219
@ 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_32BF
Definition: librtcore.h:197
@ 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_64BF
Definition: librtcore.h:198
@ PT_8BUI
Definition: librtcore.h:192

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: