PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 2012 of file lwgeom_functions_basic.c.

2013 {
2014  GSERIALIZED *in = PG_GETARG_GSERIALIZED_HEADER(0);
2015  int ret = 0;
2016 
2017  if (gserialized_has_z(in))
2018  ret += 2;
2019  if (gserialized_has_m(in))
2020  ret += 1;
2021  PG_FREE_IF_COPY(in, 0);
2022  PG_RETURN_INT16(ret);
2023 }
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: