PostGIS  3.4.0dev-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 390 of file gserialized.c.

391 {
392  GBOX box;
393  int is_empty = (gserialized_get_gbox_p(g, &box) == LW_FAILURE);
394 
395  if (is_empty)
396  return 0;
397  else
399 }
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:796
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:96

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

Referenced by _ST_SortableHash(), and lwgeom_abbrev_convert().

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