PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_uniontype_index_from_name()

static rtpg_union_type rtpg_uniontype_index_from_name ( const char *  cutype)
static

Definition at line 1721 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().

1721  {
1722  assert(cutype && strlen(cutype) > 0);
1723 
1724  if (strcmp(cutype, "LAST") == 0)
1725  return UT_LAST;
1726  else if (strcmp(cutype, "FIRST") == 0)
1727  return UT_FIRST;
1728  else if (strcmp(cutype, "MIN") == 0)
1729  return UT_MIN;
1730  else if (strcmp(cutype, "MAX") == 0)
1731  return UT_MAX;
1732  else if (strcmp(cutype, "COUNT") == 0)
1733  return UT_COUNT;
1734  else if (strcmp(cutype, "SUM") == 0)
1735  return UT_SUM;
1736  else if (strcmp(cutype, "MEAN") == 0)
1737  return UT_MEAN;
1738  else if (strcmp(cutype, "RANGE") == 0)
1739  return UT_RANGE;
1740 
1741  return UT_LAST;
1742 }
Here is the caller graph for this function: