PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ lwgeom_ge()

Datum lwgeom_ge ( PG_FUNCTION_ARGS  )

Definition at line 92 of file lwgeom_btree.c.

References gserialized_cmp(), lwgeom_gt(), and PG_FUNCTION_INFO_V1().

Referenced by lwgeom_eq().

93 {
94  GSERIALIZED *g1 = PG_GETARG_GSERIALIZED_P(0);
95  GSERIALIZED *g2 = PG_GETARG_GSERIALIZED_P(1);
96  int cmp = gserialized_cmp(g1, g2);
97  PG_FREE_IF_COPY(g1, 0);
98  PG_FREE_IF_COPY(g2, 1);
99  if (cmp >= 0)
100  PG_RETURN_BOOL(true);
101  else
102  PG_RETURN_BOOL(false);
103 }
int gserialized_cmp(const GSERIALIZED *g1, const GSERIALIZED *g2)
Return -1 if g1 is "less than" g2, 1 if g1 is "greater than" g2 and 0 if g1 and g2 are the "same"...
Definition: g_serialized.c:293
Here is the call graph for this function:
Here is the caller graph for this function: