PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_get_type()

uint32_t gserialized_get_type ( const GSERIALIZED g)

Extract the geometry type from the serialized form (it hides in the anonymous data area, so this is a handy function).

Definition at line 89 of file gserialized.c.

90 {
91  if (GFLAGS_GET_VERSION(g->gflags))
92  return gserialized2_get_type(g);
93  else
94  return gserialized1_get_type(g);
95 }
uint32_t gserialized1_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition: gserialized1.c:131
uint32_t gserialized2_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition: gserialized2.c:184
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432