PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_get_srid()

int32_t gserialized_get_srid ( const GSERIALIZED g)

Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function).

Definition at line 155 of file gserialized.c.

156 {
157  if (GFLAGS_GET_VERSION(g->gflags))
158  return gserialized2_get_srid(g);
159  else
160  return gserialized1_get_srid(g);
161 }
int32_t gserialized1_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
Definition: gserialized1.c:143
int32_t gserialized2_get_srid(const GSERIALIZED *g)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
Definition: gserialized2.c:191
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446