** Instead of using ring orientation we count the number of parts the ** point falls in. If odd the point is in the polygon, if 0 or even ** then the point is in a hole or completely outside. */
| 219 | ** then the point is in a hole or completely outside. |
| 220 | */ |
| 221 | int msIntersectPointPolygon(pointObj *point, shapeObj *poly) { |
| 222 | int i; |
| 223 | int status=MS_FALSE; |
| 224 | |
| 225 | for(i=0; i<poly->numlines; i++) { |
| 226 | if(msPointInPolygon(point, &poly->line[i]) == MS_TRUE) /* ok, the point is in a line */ |
| 227 | status = !status; |
| 228 | } |
| 229 | |
| 230 | return(status); |
| 231 | } |
| 232 | |
| 233 | int msIntersectMultipointPolygon(shapeObj *multipoint, shapeObj *poly) { |
| 234 | int i,j; |
no test coverage detected