PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized1_get_lwflags()

lwflags_t gserialized1_get_lwflags ( const GSERIALIZED g)

Read the flags from a GSERIALIZED and return a standard lwflag integer.

Definition at line 39 of file gserialized1.c.

40 {
41  lwflags_t lwflags = 0;
42  uint8_t gflags = g->gflags;
48  return lwflags;
49 }
#define G1FLAGS_GET_M(gflags)
Definition: gserialized1.h:17
#define G1FLAGS_GET_SOLID(gflags)
Definition: gserialized1.h:20
#define G1FLAGS_GET_BBOX(gflags)
Definition: gserialized1.h:18
#define G1FLAGS_GET_GEODETIC(gflags)
Definition: gserialized1.h:19
#define G1FLAGS_GET_Z(gflags)
Definition: gserialized1.h:16
uint16_t lwflags_t
Definition: liblwgeom.h:313
#define FLAGS_SET_BBOX(flags, value)
Definition: liblwgeom.h:188
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:189
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition: lwutil.c:471
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:187
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:186
#define FLAGS_SET_SOLID(flags, value)
Definition: liblwgeom.h:191
uint8_t gflags
Definition: liblwgeom.h:432

References FLAGS_SET_BBOX, FLAGS_SET_GEODETIC, FLAGS_SET_M, FLAGS_SET_SOLID, FLAGS_SET_Z, G1FLAGS_GET_BBOX, G1FLAGS_GET_GEODETIC, G1FLAGS_GET_M, G1FLAGS_GET_SOLID, G1FLAGS_GET_Z, GSERIALIZED::gflags, and lwflags().

Referenced by gserialized1_peek_gbox_p(), gserialized1_read_gbox_p(), gserialized_get_lwflags(), and lwgeom_from_gserialized1().

Here is the call graph for this function:
Here is the caller graph for this function: