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

Definition at line 1948 of file lwgeom_functions_basic.c.

References gserialized_ndims().

1949 {
1950  GSERIALIZED *in;
1951  int ret;
1952 
1953  in = PG_GETARG_GSERIALIZED_P(0);
1954  ret = (gserialized_ndims(in));
1955  PG_FREE_IF_COPY(in, 0);
1956  PG_RETURN_INT16(ret);
1957 }
int gserialized_ndims(const GSERIALIZED *gser)
Return the number of dimensions (2, 3, 4) in a geometry.
Definition: g_serialized.c:39

Here is the call graph for this function: