Definition at line 909 of file lwgeom_functions_analytic.c.
References getPoint2d_p(), LWPOINT::point, point_in_ring_rtree(), and r.
Referenced by pip_short_circuit().
911 int i, p,
r, in_ring;
915 POSTGIS_DEBUGF(2,
"point_in_multipolygon_rtree called for %p %d %p.", root, polyCount, point);
923 for ( p = 0; p < polyCount; p++ )
926 POSTGIS_DEBUGF(4,
"point_in_multipolygon_rtree: exterior ring (%d), point_in_ring returned %d", p, in_ring);
929 POSTGIS_DEBUG(3,
"point_in_multipolygon_rtree: outside exterior ring.");
931 else if ( in_ring == 0 )
933 POSTGIS_DEBUGF(3,
"point_in_multipolygon_rtree: on edge of exterior ring %d", p);
938 for(r=1; r<ringCounts[p]; r++)
941 POSTGIS_DEBUGF(4,
"point_in_multipolygon_rtree: interior ring (%d), point_in_ring returned %d", r, in_ring);
944 POSTGIS_DEBUGF(3,
"point_in_multipolygon_rtree: within hole %d of exterior ring %d", r, p);
950 POSTGIS_DEBUGF(3,
"point_in_multipolygon_rtree: on edge of hole %d of exterior ring %d", r, p);
static int point_in_ring_rtree(RTREE_NODE *root, const POINT2D *point)
int getPoint2d_p(const POINTARRAY *pa, int n, POINT2D *point)