PostGIS  2.4.9dev-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 60 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().

61 {
62  return FLAGS_NDIMS(gser->flags);
63 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
uint8_t flags
Definition: liblwgeom.h:383
Here is the caller graph for this function: