MCPcopy Index your code
hub / github.com/MapServer/MapServer / msRASTERLayerSetTimeFilter

Function msRASTERLayerSetTimeFilter

maprasterquery.c:1596–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594/************************************************************************/
1595
1596int 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() */

Callers

nothing calls this directly

Calls 4

msGetLayerIndexFunction · 0.85
msCheckParentPointerFunction · 0.85
msLayerSetTimeFilterFunction · 0.85

Tested by

no test coverage detected