Query for the items collection */
| 567 | |
| 568 | /* Query for the items collection */ |
| 569 | int msUnionLayerGetItems(layerObj *layer) |
| 570 | { |
| 571 | /* we support certain built in attributes */ |
| 572 | layer->numitems = 2; |
| 573 | layer->items = malloc(sizeof(char*) * (layer->numitems)); |
| 574 | MS_CHECK_ALLOC(layer->items, layer->numitems * sizeof(char*), MS_FAILURE); |
| 575 | layer->items[0] = msStrdup(MSUNION_SOURCELAYERNAME); |
| 576 | layer->items[1] = msStrdup(MSUNION_SOURCELAYERGROUP); |
| 577 | |
| 578 | return msUnionLayerInitItemInfo(layer); |
| 579 | } |
| 580 | |
| 581 | int msUnionLayerGetNumFeatures(layerObj *layer) |
| 582 | { |
nothing calls this directly
no test coverage detected