PostGIS  2.2.7dev-r@@SVN_REVISION@@
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 34 of file g_serialized.c.

References GSERIALIZED::flags, FLAGS_GET_M, and FLAGS_GET_Z.

Referenced by LWGEOM_same().

35 {
36  return 2 * FLAGS_GET_Z(gser->flags) + FLAGS_GET_M(gser->flags);
37 }
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:124
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:125
uint8_t flags
Definition: liblwgeom.h:367

Here is the caller graph for this function: