PostGIS  2.1.10dev-r@@SVN_REVISION@@
int gserialized_ndims ( const GSERIALIZED gser)

Return the number of dimensions (2, 3, 4) in a geometry.

Definition at line 40 of file g_serialized.c.

References GSERIALIZED::flags, and FLAGS_NDIMS.

Referenced by LWGEOM_force_2d(), LWGEOM_force_3dm(), LWGEOM_force_3dz(), LWGEOM_force_4d(), and LWGEOM_ndims().

41 {
42  return FLAGS_NDIMS(gser->flags);
43 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118
uint8_t flags
Definition: liblwgeom.h:339

Here is the caller graph for this function: