896{
897 int i;
899
900 POSTGIS_DEBUGF(2, "point_in_polygon called for %p %d %p.", root, ringCount, point);
901
903
904
906 {
907 POSTGIS_DEBUG(3, "point_in_polygon_rtree: outside exterior ring.");
908
909 return 0;
910 }
911
912 for (i=1; i<ringCount; i++)
913 {
915 {
916 POSTGIS_DEBUGF(3, "point_in_polygon_rtree: within hole %d.", i);
917
918 return 0;
919 }
920 }
921 return 1;
922}
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
static int point_in_ring_rtree(RTREE_NODE *root, const POINT2D *point)