PostGIS  2.1.10dev-r@@SVN_REVISION@@
static rtpg_union_type rtpg_uniontype_index_from_name ( const char *  cutype)
static

Definition at line 17729 of file rt_pg.c.

References UT_COUNT, UT_FIRST, UT_LAST, UT_MAX, UT_MEAN, UT_MIN, UT_RANGE, and UT_SUM.

Referenced by RASTER_union_transfn(), and rtpg_union_unionarg_process().

17729  {
17730  assert(cutype && strlen(cutype) > 0);
17731 
17732  if (strcmp(cutype, "LAST") == 0)
17733  return UT_LAST;
17734  else if (strcmp(cutype, "FIRST") == 0)
17735  return UT_FIRST;
17736  else if (strcmp(cutype, "MIN") == 0)
17737  return UT_MIN;
17738  else if (strcmp(cutype, "MAX") == 0)
17739  return UT_MAX;
17740  else if (strcmp(cutype, "COUNT") == 0)
17741  return UT_COUNT;
17742  else if (strcmp(cutype, "SUM") == 0)
17743  return UT_SUM;
17744  else if (strcmp(cutype, "MEAN") == 0)
17745  return UT_MEAN;
17746  else if (strcmp(cutype, "RANGE") == 0)
17747  return UT_RANGE;
17748 
17749  return UT_LAST;
17750 }

Here is the caller graph for this function: