PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ LWGEOM_zmflag()

Datum LWGEOM_zmflag ( PG_FUNCTION_ARGS  )

Definition at line 2006 of file lwgeom_functions_basic.c.

2007{
2008 GSERIALIZED *in = PG_GETARG_GSERIALIZED_HEADER(0);
2009 int ret = 0;
2010
2011 if (gserialized_has_z(in))
2012 ret += 2;
2013 if (gserialized_has_m(in))
2014 ret += 1;
2015 PG_FREE_IF_COPY(in, 0);
2016 PG_RETURN_INT16(ret);
2017}
int gserialized_has_m(const GSERIALIZED *g)
Check if a GSERIALIZED has an M ordinate.
int gserialized_has_z(const GSERIALIZED *g)
Check if a GSERIALIZED has a Z ordinate.

References gserialized_has_m(), and gserialized_has_z().

Here is the call graph for this function: