PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_get_lwflags()

lwflags_t gserialized_get_lwflags ( const GSERIALIZED g)

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

Read standard lwflags from gserialized.

Definition at line 47 of file gserialized.c.

48 {
49  if (GFLAGS_GET_VERSION(g->gflags))
50  return gserialized2_get_lwflags(g);
51  else
52  return gserialized1_get_lwflags(g);
53 }
lwflags_t gserialized1_get_lwflags(const GSERIALIZED *g)
Read the flags from a GSERIALIZED and return a standard lwflag integer.
Definition: gserialized1.c:41
lwflags_t gserialized2_get_lwflags(const GSERIALIZED *g)
Read the flags from a GSERIALIZED and return a standard lwflag integer.
Definition: gserialized2.c:59
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_get_lwflags(), and gserialized2_get_lwflags().

Referenced by geography_bestsrid(), and gserialized_datum_get_internals_p().

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