PostGIS
2.5.7dev-r@@SVN_REVISION@@
◆
lwgeom_le()
Datum lwgeom_le
(
PG_FUNCTION_ARGS
)
Definition at line
65
of file
lwgeom_btree.c
.
66
{
67
GSERIALIZED
*g1 = PG_GETARG_GSERIALIZED_P(0);
68
GSERIALIZED
*g2 = PG_GETARG_GSERIALIZED_P(1);
69
int
cmp =
gserialized_cmp
(g1, g2);
70
PG_FREE_IF_COPY(g1, 0);
71
PG_FREE_IF_COPY(g2, 1);
72
if
(cmp <= 0)
73
PG_RETURN_BOOL(
true
);
74
else
75
PG_RETURN_BOOL(
false
);
76
}
gserialized_cmp
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:294
GSERIALIZED
Definition:
liblwgeom.h:383
References
gserialized_cmp()
.
Here is the call graph for this function:
postgis
lwgeom_btree.c
Generated by
1.9.1