Definition at line 1026 of file lwgeom_functions_analytic.c.
References LWMPOLY::geoms, getPoint2d_p(), LWMPOLY::ngeoms, LWPOLY::nrings, PG_FUNCTION_INFO_V1(), LWPOINT::point, point_in_ring(), LWPOLY::rings, and ST_MinimumBoundingRadius().
Referenced by pip_short_circuit().
1028 int i, j, result, in_ring;
1031 POSTGIS_DEBUG(2,
"point_in_polygon called.");
1038 for (j = 0; j < mpolygon->
ngeoms; j++ )
1044 if ( polygon->
nrings == 0 )
continue;
1049 POSTGIS_DEBUG(3,
"point_in_polygon: outside exterior ring.");
1059 for (i=1; i<polygon->
nrings; i++)
1064 POSTGIS_DEBUGF(3,
"point_in_polygon: within hole %d.", i);
1070 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)