PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_set_srid()

void gserialized_set_srid ( GSERIALIZED g,
int32_t  srid 
)

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

Definition at line 138 of file gserialized.c.

139 {
140  if (GFLAGS_GET_VERSION(g->gflags))
141  return gserialized2_set_srid(g, srid);
142  else
143  return gserialized1_set_srid(g, srid);
144 }
void gserialized1_set_srid(GSERIALIZED *s, int32_t srid)
Write the SRID into the serialized form (it is packed into three bytes so this is a handy function).
Definition: gserialized1.c:159
void gserialized2_set_srid(GSERIALIZED *g, int32_t srid)
Write the SRID into the serialized form (it is packed into three bytes so this is a handy function).
Definition: gserialized2.c:207
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_set_srid(), and gserialized2_set_srid().

Referenced by BOX3D_to_LWGEOM(), LWGEOM_from_WKB(), and LWGEOM_set_srid().

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