PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gserialized_ndims()

int gserialized_ndims ( const GSERIALIZED gser)

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

Definition at line 39 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().

40 {
41  return FLAGS_NDIMS(gser->flags);
42 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
uint8_t flags
Definition: liblwgeom.h:367
Here is the caller graph for this function: