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

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

1668  {
1669  assert(cutype && strlen(cutype) > 0);
1670 
1671  if (strcmp(cutype, "LAST") == 0)
1672  return UT_LAST;
1673  else if (strcmp(cutype, "FIRST") == 0)
1674  return UT_FIRST;
1675  else if (strcmp(cutype, "MIN") == 0)
1676  return UT_MIN;
1677  else if (strcmp(cutype, "MAX") == 0)
1678  return UT_MAX;
1679  else if (strcmp(cutype, "COUNT") == 0)
1680  return UT_COUNT;
1681  else if (strcmp(cutype, "SUM") == 0)
1682  return UT_SUM;
1683  else if (strcmp(cutype, "MEAN") == 0)
1684  return UT_MEAN;
1685  else if (strcmp(cutype, "RANGE") == 0)
1686  return UT_RANGE;
1687 
1688  return UT_LAST;
1689 }

Here is the caller graph for this function: