PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_get_sortable_hash()

uint64_t gserialized_get_sortable_hash ( const GSERIALIZED g)

Return a sortable key based on gserialized.

Definition at line 391 of file gserialized.c.

392 {
393  GBOX box;
394  int is_empty = (gserialized_get_gbox_p(g, &box) == LW_FAILURE);
395 
396  if (is_empty)
397  return 0;
398  else
400 }
uint64_t gbox_get_sortable_hash(const GBOX *g, const int32_t srid)
Return a sortable key based on the center point of the GBOX.
Definition: gbox.c:893
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: gserialized.c:126
int gserialized_get_gbox_p(const GSERIALIZED *g, GBOX *gbox)
Read the box from the GSERIALIZED or calculate it if necessary.
Definition: gserialized.c:65
#define LW_FAILURE
Definition: liblwgeom.h:110

References gbox_get_sortable_hash(), gserialized_get_gbox_p(), gserialized_get_srid(), and LW_FAILURE.

Referenced by lwgeom_abbrev_convert().

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