PostGIS  2.5.0beta2dev-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 55 of file g_serialized.c.

References GSERIALIZED::flags, FLAGS_GET_M, and FLAGS_GET_Z.

Referenced by LWGEOM_same().

56 {
57  return 2 * FLAGS_GET_Z(gser->flags) + FLAGS_GET_M(gser->flags);
58 }
#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:385
Here is the caller graph for this function: