PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_hash()

int32_t gserialized_hash ( const GSERIALIZED g)

Returns a hash code for the srid/type/geometry information in the GSERIALIZED.

Ignores metadata like flags and optional boxes, etc.

Definition at line 114 of file gserialized.c.

115 {
116  if (GFLAGS_GET_VERSION(g->gflags))
117  return gserialized2_hash(g);
118  else
119  return gserialized1_hash(g);
120 }
int32_t gserialized1_hash(const GSERIALIZED *g1)
Returns a hash code for the srid/type/geometry information in the GSERIALIZED.
Definition: gserialized1.c:226
int32_t gserialized2_hash(const GSERIALIZED *g1)
Returns a hash code for the srid/type/geometry information in the GSERIALIZED.
Definition: gserialized2.c:268
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_hash(), and gserialized2_hash().

Referenced by lwgeom_hash().

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