PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_hash()

Datum lwgeom_hash ( PG_FUNCTION_ARGS  )

Definition at line 132 of file lwgeom_btree.c.

133 {
134  GSERIALIZED *g1 = PG_GETARG_GSERIALIZED_P(0);
135 
136  int32_t hval = gserialized_hash(g1);
137  PG_FREE_IF_COPY(g1, 0);
138  PG_RETURN_INT32(hval);
139 }
int32_t gserialized_hash(const GSERIALIZED *g)
Returns a hash code for the srid/type/geometry information in the GSERIALIZED.
Definition: gserialized.c:114

References gserialized_hash().

Here is the call graph for this function: