PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ LWGEOM_ndims()

Datum LWGEOM_ndims ( PG_FUNCTION_ARGS  )

Definition at line 1989 of file lwgeom_functions_basic.c.

1990 {
1991  GSERIALIZED *in = PG_GETARG_GSERIALIZED_HEADER(0);
1992  int ret = gserialized_ndims(in);
1993  PG_FREE_IF_COPY(in, 0);
1994  PG_RETURN_INT16(ret);
1995 }
int gserialized_ndims(const GSERIALIZED *g)
Return the number of dimensions (2, 3, 4) in a geometry.
Definition: gserialized.c:207

References gserialized_ndims().

Here is the call graph for this function: