727{
733
734
735 g1 = PG_GETARG_GSERIALIZED_P(0);
736 g2 = PG_GETARG_GSERIALIZED_P(1);
738
739
742
743
745 {
748 PG_FREE_IF_COPY(g1, 0);
749 PG_FREE_IF_COPY(g2, 1);
750 PG_RETURN_BOOL(false);
751 }
752
753
755
756
759 PG_FREE_IF_COPY(g1, 0);
760 PG_FREE_IF_COPY(g2, 1);
761
762 PG_RETURN_BOOL(result);
763}
void gserialized_error_if_srid_mismatch(const GSERIALIZED *g1, const GSERIALIZED *g2, const char *funcname)
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
int lwgeom_covers_lwgeom_sphere(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
Calculate covers predicate for two lwgeoms on the sphere.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)