PostGIS  2.1.10dev-r@@SVN_REVISION@@
rt_pixtype rt_pixtype_index_from_name ( const char *  pixname)

Definition at line 1138 of file rt_api.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().

1138  {
1139  assert(pixname && strlen(pixname) > 0);
1140 
1141  if (strcmp(pixname, "1BB") == 0)
1142  return PT_1BB;
1143  else if (strcmp(pixname, "2BUI") == 0)
1144  return PT_2BUI;
1145  else if (strcmp(pixname, "4BUI") == 0)
1146  return PT_4BUI;
1147  else if (strcmp(pixname, "8BSI") == 0)
1148  return PT_8BSI;
1149  else if (strcmp(pixname, "8BUI") == 0)
1150  return PT_8BUI;
1151  else if (strcmp(pixname, "16BSI") == 0)
1152  return PT_16BSI;
1153  else if (strcmp(pixname, "16BUI") == 0)
1154  return PT_16BUI;
1155  else if (strcmp(pixname, "32BSI") == 0)
1156  return PT_32BSI;
1157  else if (strcmp(pixname, "32BUI") == 0)
1158  return PT_32BUI;
1159  else if (strcmp(pixname, "32BF") == 0)
1160  return PT_32BF;
1161  else if (strcmp(pixname, "64BF") == 0)
1162  return PT_64BF;
1163 
1164  return PT_END;
1165 }
Definition: rt_api.h:184
Definition: rt_api.h:173

Here is the caller graph for this function: