1133{
1135 double cx = PG_GETARG_FLOAT8(1);
1136 double cy = PG_GETARG_FLOAT8(2);
1137 double rr = PG_GETARG_FLOAT8(3);
1140 int inside;
1141
1142 geom = PG_GETARG_GSERIALIZED_P(0);
1146 {
1147 PG_FREE_IF_COPY(geom, 0);
1148 PG_RETURN_NULL();
1149 }
1150
1153
1154 PG_FREE_IF_COPY(geom, 0);
1155 PG_RETURN_BOOL(inside);
1156}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwpoint_free(LWPOINT *pt)
int lwpoint_inside_circle(const LWPOINT *p, double cx, double cy, double rad)
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)