PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 2015 of file lwgeom_functions_basic.c.

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