109{
112 double maxdist = PG_GETARG_FLOAT8(2);
113
119 PG_FREE_IF_COPY(gs0, 0);
120 PG_FREE_IF_COPY(gs1, 1);
121 PG_RETURN_BOOL( ret ==
LW_TRUE );
122}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
#define LW_TRUE
Return types for functions with status returns.
int lwgeom_cpa_within(const LWGEOM *g1, const LWGEOM *g2, double maxdist)
Is the closest point of approach within a distance ?