PostGIS  2.5.7dev-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.

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:140
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:141
uint8_t flags
Definition: liblwgeom.h:386

References GSERIALIZED::flags, FLAGS_GET_M, and FLAGS_GET_Z.

Referenced by LWGEOM_same().

Here is the caller graph for this function: