| 231 | } |
| 232 | |
| 233 | int msIntersectMultipointPolygon(shapeObj *multipoint, shapeObj *poly) { |
| 234 | int i,j; |
| 235 | |
| 236 | /* The change to loop through all the lines has been made for ticket |
| 237 | * #2443 but is no more needed since ticket #2762. PostGIS now put all |
| 238 | * points into a single line. */ |
| 239 | for(i=0; i<multipoint->numlines; i++ ) { |
| 240 | lineObj points = multipoint->line[i]; |
| 241 | for(j=0; j<points.numpoints; j++) { |
| 242 | if(msIntersectPointPolygon(&(points.point[j]), poly) == MS_TRUE) |
| 243 | return(MS_TRUE); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | return(MS_FALSE); |
| 248 | } |
| 249 | |
| 250 | int msIntersectPolylines(shapeObj *line1, shapeObj *line2) { |
| 251 | int c1,v1,c2,v2; |
no test coverage detected