PostGIS  3.7.0dev-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 143 of file gserialized.c.

144 {
145  if (GFLAGS_GET_VERSION(g->gflags))
146  return gserialized2_hash(g);
147  else
148  return gserialized1_hash(g);
149 }
int32_t gserialized1_hash(const GSERIALIZED *g1)
Returns a hash code for the srid/type/geometry information in the GSERIALIZED.
Definition: gserialized1.c:227
int32_t gserialized2_hash(const GSERIALIZED *g1)
Returns a hash code for the srid/type/geometry information in the GSERIALIZED.
Definition: gserialized2.c:269
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446

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: