PostGIS  2.3.7dev-r@@SVN_REVISION@@
Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 1970 of file lwgeom_functions_basic.c.

References gserialized_has_m(), and gserialized_has_z().

1971 {
1972  GSERIALIZED *in;
1973  int ret = 0;
1974 
1975  in = PG_GETARG_GSERIALIZED_P(0);
1976  if ( gserialized_has_z(in) ) ret += 2;
1977  if ( gserialized_has_m(in) ) ret += 1;
1978  PG_FREE_IF_COPY(in, 0);
1979  PG_RETURN_INT16(ret);
1980 }
int gserialized_has_m(const GSERIALIZED *gser)
Check if a GSERIALIZED has an M ordinate.
Definition: g_serialized.c:43
int gserialized_has_z(const GSERIALIZED *gser)
Check if a GSERIALIZED has a Z ordinate.
Definition: g_serialized.c:38

Here is the call graph for this function: