PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_pixtype_index_from_name()

rt_pixtype rt_pixtype_index_from_name ( const char *  pixname)

Definition at line 80 of file rt_pixel.c.

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(), and test_pixtype_index_from_name().

80  {
81  assert(pixname && strlen(pixname) > 0);
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 }
Here is the caller graph for this function: