PostGIS 3.7.0dev-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 82 of file rt_pixel.c.

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