| 1594 | /************************************************************************/ |
| 1595 | |
| 1596 | int msRASTERLayerSetTimeFilter(layerObj *layer, const char *timestring, |
| 1597 | const char *timefield) |
| 1598 | { |
| 1599 | int tilelayerindex; |
| 1600 | |
| 1601 | /* -------------------------------------------------------------------- */ |
| 1602 | /* If we don't have a tileindex the time filter has no effect. */ |
| 1603 | /* -------------------------------------------------------------------- */ |
| 1604 | if( layer->tileindex == NULL ) |
| 1605 | return MS_SUCCESS; |
| 1606 | |
| 1607 | /* -------------------------------------------------------------------- */ |
| 1608 | /* Find the tileindex layer. */ |
| 1609 | /* -------------------------------------------------------------------- */ |
| 1610 | tilelayerindex = msGetLayerIndex(layer->map, layer->tileindex); |
| 1611 | |
| 1612 | /* -------------------------------------------------------------------- */ |
| 1613 | /* If we are using a local shapefile as our tileindex (that is */ |
| 1614 | /* to say, the tileindex name is not of another layer), then we */ |
| 1615 | /* just install a backtics style filter on the raster layer. */ |
| 1616 | /* This is propogated to the "working layer" created for the */ |
| 1617 | /* tileindex by code in mapraster.c. */ |
| 1618 | /* -------------------------------------------------------------------- */ |
| 1619 | if( tilelayerindex == -1 ) |
| 1620 | return msLayerMakeBackticsTimeFilter( layer, timestring, timefield ); |
| 1621 | |
| 1622 | /* -------------------------------------------------------------------- */ |
| 1623 | /* Otherwise we invoke the tileindex layers SetTimeFilter */ |
| 1624 | /* method. */ |
| 1625 | /* -------------------------------------------------------------------- */ |
| 1626 | if ( msCheckParentPointer(layer->map,"map")==MS_FAILURE ) |
| 1627 | return MS_FAILURE; |
| 1628 | return msLayerSetTimeFilter( layer->GET_LAYER(map,tilelayerindex), |
| 1629 | timestring, timefield ); |
| 1630 | } |
| 1631 | |
| 1632 | /************************************************************************/ |
| 1633 | /* msRASTERLayerInitializeVirtualTable() */ |
nothing calls this directly
no test coverage detected