PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ G2FLAG_EXTENDED

#define G2FLAG_EXTENDED   0x10

Return -1 if g1 is "less than" g2, 1 if g1 is "greater than" g2 and 0 if g1 and g2 are the "same".

Equality is evaluated with a memcmp and size check. So it is possible that two identical objects where one lacks a bounding box could be evaluated as non-equal initially. Greater and less than are evaluated by calculating a sortable key from the center point of the object bounds. Because this function might have to handle GSERIALIZED objects of either version, we implement it up here at the switching layer rather than down lower.

Definition at line 277 of file gserialized.c.