PostGIS 3.7.0dev-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 1693 of file rtpg_mapalgebra.c.

1693 {
1694 assert(cutype && strlen(cutype) > 0);
1695
1696 if (strcmp(cutype, "LAST") == 0)
1697 return UT_LAST;
1698 else if (strcmp(cutype, "FIRST") == 0)
1699 return UT_FIRST;
1700 else if (strcmp(cutype, "MIN") == 0)
1701 return UT_MIN;
1702 else if (strcmp(cutype, "MAX") == 0)
1703 return UT_MAX;
1704 else if (strcmp(cutype, "COUNT") == 0)
1705 return UT_COUNT;
1706 else if (strcmp(cutype, "SUM") == 0)
1707 return UT_SUM;
1708 else if (strcmp(cutype, "MEAN") == 0)
1709 return UT_MEAN;
1710 else if (strcmp(cutype, "RANGE") == 0)
1711 return UT_RANGE;
1712
1713 return UT_LAST;
1714}
@ 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: