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

◆ rt_pixtype_index_from_name()

rt_pixtype rt_pixtype_index_from_name ( const char *  pixname)

Definition at line 80 of file rt_pixel.c.

80 {
81 assert(pixname);
82
83 if (strcmp(pixname, "1BB") == 0)
84 return PT_1BB;
85 else if (strcmp(pixname, "2BUI") == 0)
86 return PT_2BUI;
87 else if (strcmp(pixname, "4BUI") == 0)
88 return PT_4BUI;
89 else if (strcmp(pixname, "8BSI") == 0)
90 return PT_8BSI;
91 else if (strcmp(pixname, "8BUI") == 0)
92 return PT_8BUI;
93 else if (strcmp(pixname, "16BSI") == 0)
94 return PT_16BSI;
95 else if (strcmp(pixname, "16BUI") == 0)
96 return PT_16BUI;
97 else if (strcmp(pixname, "32BSI") == 0)
98 return PT_32BSI;
99 else if (strcmp(pixname, "32BUI") == 0)
100 return PT_32BUI;
101 else if (strcmp(pixname, "32BF") == 0)
102 return PT_32BF;
103 else if (strcmp(pixname, "64BF") == 0)
104 return PT_64BF;
105
106 return PT_END;
107}
@ PT_32BUI
Definition librtcore.h:196
@ PT_2BUI
Definition librtcore.h:189
@ PT_32BSI
Definition librtcore.h:195
@ PT_END
Definition librtcore.h:199
@ 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 PT_END.

Referenced by RASTER_addBand(), RASTER_asRaster(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_minPossibleValue(), RASTER_nMapAlgebra(), RASTER_nMapAlgebraExpr(), RASTER_reclass(), RASTER_reclass_exact(), and test_pixtype_index_from_name().

Here is the caller graph for this function: