767{
773
774
775
776 g1 = PG_GETARG_GSERIALIZED_P(1);
777 g2 = PG_GETARG_GSERIALIZED_P(0);
779
780
783
784
786 {
789 PG_FREE_IF_COPY(g1, 1);
790 PG_FREE_IF_COPY(g2, 0);
791 PG_RETURN_BOOL(false);
792 }
793
794
796
797
800 PG_FREE_IF_COPY(g1, 1);
801 PG_FREE_IF_COPY(g2, 0);
802
803 PG_RETURN_BOOL(result);
804}
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)