776 g1 = PG_GETARG_GSERIALIZED_P(1);
777 g2 = PG_GETARG_GSERIALIZED_P(0);
789 PG_FREE_IF_COPY(g1, 1);
790 PG_FREE_IF_COPY(g2, 0);
791 PG_RETURN_BOOL(
false);
800 PG_FREE_IF_COPY(g1, 1);
801 PG_FREE_IF_COPY(g2, 0);
803 PG_RETURN_BOOL(result);
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)