<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
My MapServer WMS service seems to be misusing the default times I
have defined on map layers. It (correctly) uses the default time for
GetMap requests that specify no time at all; however it
(incorrectly) uses this time also for requests that specify a time
outside the layer's available times. (For, say, time=2017-09-21, it
returns today's image... which is very confusing.)<br>
<br>
The WMS Capabilities doc shows <Extent name="time" ...
nearestValue="0"> which is what I want -- but it doesn't match
the above behavior. Excerpt:<br>
<blockquote><small> <Layer queryable="0" opaque="0"
cascaded="0"><br>
<Name>iicmocp_time_idx</Name><br>
<Title>Time Index for iicmocp</Title><br>
<SRS>EPSG:4326</SRS><br>
</Layer><br>
<Layer queryable="0" opaque="0" cascaded="0"><br>
<Name>iicmocp_daily</Name><br>
<Title>csppnppviirssdr iicmocp daily</Title><br>
<Abstract>Some important description
here...</Abstract><br>
<SRS>EPSG:4326</SRS><br>
<Dimension name="time" units="ISO8601"/><br>
<Extent name="time" default="2013-06-11"
nearestValue="0">2013-06-09/2013-06-11T09:16/P1D</Extent><br>
</Layer><br>
</small></blockquote>
Is this a bug in mapserv? Or have I just misconfigured my time
index? (Mapfile excerpts below.)<br>
<br>
Thanks.<br>
<br>
- John Evans<br>
<br>
<br>
p.s. My mapfile has the following details for these layers:<br>
<blockquote><small> LAYER</small><br>
<small> NAME "iicmocp_daily"</small><br>
<small> TYPE RASTER</small><br>
<small> STATUS off</small><br>
<small> OFFSITE 0 0 0</small><br>
<small> TRANSPARENCY 80</small><br>
<small> TILEINDEX "iicmocp_time_idx"</small><br>
<small> TILEITEM "tiffpath"</small><br>
<small> METADATA</small><br>
<small> "wms_srs" "EPSG:4326" </small><br>
<small> "wms_title" "csppnppviirssdr iicmocp daily"</small><br>
<small> "wms_layer_group" "/csppnppviirssdr iicmocp imagery"</small><br>
<small> "wms_abstract" "Some important description here..."</small><br>
<small> "wms_timeextent" "2013-06-09/2013-06-11T09:16/P1D"</small><br>
<small> "wms_timedefault" "2013-06-11"</small><br>
<small> "wms_timeitem" "filedate"</small><br>
<small> "wms_timeformat"
"YYYY-MM-DD,YYYY-MM-DDTHH,YYYY-MM-DDTHH:MM"</small><br>
<small> END</small><br>
<small> END</small><br>
</blockquote>
<blockquote><small> LAYER<br>
NAME "iicmocp_time_idx"<br>
TYPE POLYGON<br>
DATA "geom from iicmocp"<br>
METADATA<br>
"wms_title" "Time Index for iicmocp"<br>
"wms_srs" "EPSG:4326"<br>
END<br>
CONNECTIONTYPE POSTGIS<br>
CONNECTION "host=localhost port=5432 dbname=mapdemo ..."<br>
END<br>
</small></blockquote>
</body>
</html>