PostGIS  2.3.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 53 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().

54 {
55  return FLAGS_NDIMS(gser->flags);
56 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
uint8_t flags
Definition: liblwgeom.h:382
Here is the caller graph for this function: