Hi all,

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.)

The WMS Capabilities doc shows <Extent name="time" ... nearestValue="0"> which is what I want -- but it doesn't match the above behavior. Excerpt:

        <Layer queryable="0" opaque="0" cascaded="0">
          <Name>iicmocp_time_idx</Name>
          <Title>Time Index for iicmocp</Title>
          <SRS>EPSG:4326</SRS>
        </Layer>
        <Layer queryable="0" opaque="0" cascaded="0">
          <Name>iicmocp_daily</Name>
          <Title>csppnppviirssdr iicmocp daily</Title>
          <Abstract>Some important description here...</Abstract>
          <SRS>EPSG:4326</SRS>
          <Dimension name="time" units="ISO8601"/>
          <Extent name="time" default="2013-06-11"
   nearestValue="0">2013-06-09/2013-06-11T09:16/P1D</Extent>
        </Layer>

Is this a bug in mapserv? Or have I just misconfigured my time index? (Mapfile excerpts below.)

Thanks.

  - John Evans


p.s. My mapfile has the following details for these layers:

      LAYER
        NAME "iicmocp_daily"
        TYPE RASTER
        STATUS off
        OFFSITE 0 0 0
        TRANSPARENCY 80
        TILEINDEX "iicmocp_time_idx"
        TILEITEM "tiffpath"
        METADATA
          "wms_srs" "EPSG:4326"
          "wms_title" "csppnppviirssdr iicmocp daily"
          "wms_layer_group" "/csppnppviirssdr iicmocp imagery"
          "wms_abstract" "Some important description here..."
          "wms_timeextent" "2013-06-09/2013-06-11T09:16/P1D"
          "wms_timedefault" "2013-06-11"
          "wms_timeitem" "filedate"
          "wms_timeformat" "YYYY-MM-DD,YYYY-MM-DDTHH,YYYY-MM-DDTHH:MM"
        END
      END

      LAYER
        NAME "iicmocp_time_idx"
        TYPE POLYGON
        DATA  "geom from iicmocp"
        METADATA
          "wms_title" "Time Index for iicmocp"
          "wms_srs" "EPSG:4326"
        END
        CONNECTIONTYPE POSTGIS
        CONNECTION "host=localhost port=5432 dbname=mapdemo ..."
      END

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to