PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 1951 of file lwgeom_functions_basic.c.

1952 {
1953  GSERIALIZED *in = PG_GETARG_GSERIALIZED_HEADER(0);
1954  int ret = 0;
1955 
1956  if (gserialized_has_z(in))
1957  ret += 2;
1958  if (gserialized_has_m(in))
1959  ret += 1;
1960  PG_FREE_IF_COPY(in, 0);
1961  PG_RETURN_INT16(ret);
1962 }
int gserialized_has_m(const GSERIALIZED *g)
Check if a GSERIALIZED has an M ordinate.
Definition: gserialized.c:185
int gserialized_has_z(const GSERIALIZED *g)
Check if a GSERIALIZED has a Z ordinate.
Definition: gserialized.c:174

References gserialized_has_m(), and gserialized_has_z().

Here is the call graph for this function: