PostGIS  2.5.0beta1dev-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:151
uint8_t flags
Definition: liblwgeom.h:385
Here is the caller graph for this function: