PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum LWGEOM_ndims ( PG_FUNCTION_ARGS  )

Definition at line 2012 of file lwgeom_functions_basic.c.

References gserialized_ndims().

2013 {
2014  GSERIALIZED *in;
2015  int ret;
2016 
2017  in = PG_GETARG_GSERIALIZED_P(0);
2018  ret = (gserialized_ndims(in));
2019  PG_FREE_IF_COPY(in, 0);
2020  PG_RETURN_INT16(ret);
2021 }
int gserialized_ndims(const GSERIALIZED *gser)
Return the number of dimensions (2, 3, 4) in a geometry.
Definition: g_serialized.c:60

Here is the call graph for this function: