PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 1954 of file lwgeom_functions_basic.c.

1955 {
1956  GSERIALIZED *in = PG_GETARG_GSERIALIZED_P(0);
1957  int ret = 0;
1958 
1959  if (gserialized_has_z(in))
1960  ret += 2;
1961  if (gserialized_has_m(in))
1962  ret += 1;
1963  PG_FREE_IF_COPY(in, 0);
1964  PG_RETURN_INT16(ret);
1965 }
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: