742 g1 = PG_GETARG_GSERIALIZED_P(0);
743 g2 = PG_GETARG_GSERIALIZED_P(1);
756 PG_FREE_IF_COPY(g1, 0);
757 PG_FREE_IF_COPY(g2, 1);
758 PG_RETURN_BOOL(
false);
767 PG_FREE_IF_COPY(g1, 0);
768 PG_FREE_IF_COPY(g2, 1);
770 PG_RETURN_BOOL(result);
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.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
void error_if_srid_mismatch(int srid1, int srid2)