258 bool isPoly1, isPoly2, isPt1, isPt2;
263 PG_FREE_IF_COPY(g1, 0);
264 PG_FREE_IF_COPY(g2, 1);
265 PG_RETURN_BOOL(
false);
277 if (isPoly1 && isPt2)
282 else if (isPoly2 && isPt1)
289 elog(ERROR,
"arguments to %s must a point and a polygon", __func__);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
IntervalTree * itree_from_lwgeom(const LWGEOM *geom)
IntervalTreeResult itree_point_in_multipolygon(const IntervalTree *itree, const LWPOINT *point)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)