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

◆ rt_pixtype_name()

const char * rt_pixtype_name ( rt_pixtype  pixtype)

Definition at line 114 of file rt_pixel.c.

114 {
115
116
117 switch (pixtype) {
118 case PT_1BB:
119 return "1BB";
120 case PT_2BUI:
121 return "2BUI";
122 case PT_4BUI:
123 return "4BUI";
124 case PT_8BSI:
125 return "8BSI";
126 case PT_8BUI:
127 return "8BUI";
128 case PT_16BSI:
129 return "16BSI";
130 case PT_16BUI:
131 return "16BUI";
132 case PT_16BF:
133 return "16BF";
134 case PT_32BSI:
135 return "32BSI";
136 case PT_32BUI:
137 return "32BUI";
138 case PT_32BF:
139 return "32BF";
140 case PT_64BF:
141 return "64BF";
142 default:
143 rterror("rt_pixtype_name: Unknown pixeltype %d", pixtype);
144 return "Unknown";
145 }
146}
void rterror(const char *fmt,...) __attribute__((format(printf
Wrappers used for reporting errors and info.
@ PT_32BUI
Definition librtcore.h:197
@ PT_16BF
Definition librtcore.h:198
@ PT_2BUI
Definition librtcore.h:190
@ PT_32BSI
Definition librtcore.h:196
@ PT_4BUI
Definition librtcore.h:191
@ PT_32BF
Definition librtcore.h:199
@ PT_1BB
Definition librtcore.h:189
@ PT_16BUI
Definition librtcore.h:195
@ PT_8BSI
Definition librtcore.h:192
@ PT_16BSI
Definition librtcore.h:194
@ PT_64BF
Definition librtcore.h:200
@ PT_8BUI
Definition librtcore.h:193

References PT_16BF, 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: