PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ gserialized_get_zm()

int gserialized_get_zm ( const GSERIALIZED gser)

Return a number indicating presence of Z and M coordinates.

0 = None, 1 = M, 2 = Z, 3 = ZM

Definition at line 48 of file g_serialized.c.

References GSERIALIZED::flags, FLAGS_GET_M, and FLAGS_GET_Z.

Referenced by LWGEOM_same().

49 {
50  return 2 * FLAGS_GET_Z(gser->flags) + FLAGS_GET_M(gser->flags);
51 }
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:139
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:140
uint8_t flags
Definition: liblwgeom.h:382
Here is the caller graph for this function: