Definition at line 983 of file lwgeom_functions_analytic.c.
References getPoint2d_p(), LWPOLY::nrings, LWPOINT::point, point_in_ring(), and LWPOLY::rings.
Referenced by pip_short_circuit().
985 int i, result, in_ring;
988 POSTGIS_DEBUG(2,
"point_in_polygon called.");
994 if ( polygon->
nrings == 0 )
return -1;
999 POSTGIS_DEBUG(3,
"point_in_polygon: outside exterior ring.");
1004 for (i=1; i<polygon->
nrings; i++)
1009 POSTGIS_DEBUGF(3,
"point_in_polygon: within hole %d.", i);
1014 POSTGIS_DEBUGF(3,
"point_in_polygon: on edge of hole %d.", i);
static int point_in_ring(POINTARRAY *pts, const POINT2D *point)
int getPoint2d_p(const POINTARRAY *pa, int n, POINT2D *point)