** Returns a list of outer rings for shape (the list has one entry for each ring, ** MS_TRUE for outer rings). */
| 252 | ** MS_TRUE for outer rings). |
| 253 | */ |
| 254 | int *msGetOuterList(shapeObj *shape) |
| 255 | { |
| 256 | int i; |
| 257 | int *list; |
| 258 | |
| 259 | list = (int *)malloc(sizeof(int)*shape->numlines); |
| 260 | MS_CHECK_ALLOC(list, sizeof(int)*shape->numlines, NULL); |
| 261 | |
| 262 | for(i=0; i<shape->numlines; i++) |
| 263 | list[i] = msIsOuterRing(shape, i); |
| 264 | |
| 265 | return(list); |
| 266 | } |
| 267 | |
| 268 | /* |
| 269 | ** Returns a list of inner rings for ring r in shape (given a list of outer rings). |
no test coverage detected