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

Definition at line 2013 of file lwgeom_functions_basic.c.

References gserialized_ndims().

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

Here is the call graph for this function: