PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 1979 of file lwgeom_functions_basic.c.

1980 {
1981  GSERIALIZED *in = PG_GETARG_GSERIALIZED_HEADER(0);
1982  int ret = 0;
1983 
1984  if (gserialized_has_z(in))
1985  ret += 2;
1986  if (gserialized_has_m(in))
1987  ret += 1;
1988  PG_FREE_IF_COPY(in, 0);
1989  PG_RETURN_INT16(ret);
1990 }
int gserialized_has_m(const GSERIALIZED *g)
Check if a GSERIALIZED has an M ordinate.
Definition: gserialized.c:214
int gserialized_has_z(const GSERIALIZED *g)
Check if a GSERIALIZED has a Z ordinate.
Definition: gserialized.c:203

References gserialized_has_m(), and gserialized_has_z().

Here is the call graph for this function: