Definition at line 105 of file lwgeom_btree.c.
References error_if_srid_mismatch(), FALSE, FPeq, gserialized_get_gbox_p(), gserialized_get_srid(), LW_FAILURE, lwgeom_eq(), PG_FUNCTION_INFO_V1(), TRUE, GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.
Referenced by lwgeom_lt().
113 POSTGIS_DEBUG(2,
"lwgeom_le called");
120 PG_FREE_IF_COPY(geom1, 0);
121 PG_FREE_IF_COPY(geom2, 1);
123 if ( empty1 != empty2 )
125 PG_RETURN_BOOL(
FALSE);
132 PG_RETURN_BOOL(
TRUE);
134 PG_RETURN_BOOL(
FALSE);
141 PG_RETURN_BOOL(
TRUE);
143 PG_RETURN_BOOL(
FALSE);
150 PG_RETURN_BOOL(
TRUE);
152 PG_RETURN_BOOL(
FALSE);
159 PG_RETURN_BOOL(
TRUE);
161 PG_RETURN_BOOL(
FALSE);
164 PG_RETURN_BOOL(
TRUE);
int gserialized_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
void error_if_srid_mismatch(int srid1, int srid2)
int32_t gserialized_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...