PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rtpg_uniontype_index_from_name()

static rtpg_union_type rtpg_uniontype_index_from_name ( const char *  cutype)
static

Definition at line 1728 of file rtpg_mapalgebra.c.

1728 {
1729 assert(cutype && strlen(cutype) > 0);
1730
1731 if (strcmp(cutype, "LAST") == 0)
1732 return UT_LAST;
1733 else if (strcmp(cutype, "FIRST") == 0)
1734 return UT_FIRST;
1735 else if (strcmp(cutype, "MIN") == 0)
1736 return UT_MIN;
1737 else if (strcmp(cutype, "MAX") == 0)
1738 return UT_MAX;
1739 else if (strcmp(cutype, "COUNT") == 0)
1740 return UT_COUNT;
1741 else if (strcmp(cutype, "SUM") == 0)
1742 return UT_SUM;
1743 else if (strcmp(cutype, "MEAN") == 0)
1744 return UT_MEAN;
1745 else if (strcmp(cutype, "RANGE") == 0)
1746 return UT_RANGE;
1747
1748 return UT_LAST;
1749}
@ UT_MIN
@ UT_MEAN
@ UT_COUNT
@ UT_LAST
@ UT_SUM
@ UT_FIRST
@ UT_MAX
@ UT_RANGE

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().

Here is the caller graph for this function: