PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ LWGEOM_ndims()

Datum LWGEOM_ndims ( PG_FUNCTION_ARGS  )

Definition at line 2014 of file lwgeom_functions_basic.c.

References gserialized_ndims(), LWGEOM_same(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_hasBBOX().

2015 {
2016  GSERIALIZED *in;
2017  int ret;
2018 
2019  in = PG_GETARG_GSERIALIZED_P(0);
2020  ret = (gserialized_ndims(in));
2021  PG_FREE_IF_COPY(in, 0);
2022  PG_RETURN_INT16(ret);
2023 }
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:
Here is the caller graph for this function: