PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 1977 of file lwgeom_functions_basic.c.

1978 {
1979  GSERIALIZED *in;
1980  int ret = 0;
1981 
1982  in = PG_GETARG_GSERIALIZED_P(0);
1983  if ( gserialized_has_z(in) ) ret += 2;
1984  if ( gserialized_has_m(in) ) ret += 1;
1985  PG_FREE_IF_COPY(in, 0);
1986  PG_RETURN_INT16(ret);
1987 }
int gserialized_has_z(const GSERIALIZED *gser)
Check if a GSERIALIZED has a Z ordinate.
Definition: g_serialized.c:45
int gserialized_has_m(const GSERIALIZED *gser)
Check if a GSERIALIZED has an M ordinate.
Definition: g_serialized.c:50

References gserialized_has_m(), and gserialized_has_z().

Here is the call graph for this function: