[mapserver-commits] r12498 - branches/branch-6-0/docs/en/ogc
trunk/docs/en/ogc
svn at osgeo.org
svn at osgeo.org
Sun Aug 28 04:24:33 EDT 2011
Author: havatv
Date: 2011-08-28 01:24:33 -0700 (Sun, 28 Aug 2011)
New Revision: 12498
Modified:
branches/branch-6-0/docs/en/ogc/wms_time.txt
trunk/docs/en/ogc/wms_time.txt
Log:
Added a note in the wms_time document on the use of LAYER FILTER for default time (#3038).
Modified: branches/branch-6-0/docs/en/ogc/wms_time.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/wms_time.txt 2011-08-28 07:17:01 UTC (rev 12497)
+++ branches/branch-6-0/docs/en/ogc/wms_time.txt 2011-08-28 08:24:33 UTC (rev 12498)
@@ -74,12 +74,21 @@
return the valid time values for the layer. The value defined here should be a
valid time range. (more on this in 'Specifying Time Extents' below)
-- *wms_ timeitem*: (*Mandatory*) this is the name of the field in the DB that
+- *wms_timeitem*: (*Mandatory*) this is the name of the field in the DB that
contains the time values.
- *wms_timedefault*: (*Optional*) this value is used if it is defined and the
TIME value is missing in the request.
+It is also recommended to set a `LAYER` `FILTER` for the time layer to
+provide a default time also for non-WMS requests. If the time item is
+`mytime`, and the time format is "YYYYMMDD" the following filter could
+be used:
+
+.. code-block:: mapfile
+
+ FILTER ([mytime] = '20041012')
+
Specifying Time Extents
***********************
Modified: trunk/docs/en/ogc/wms_time.txt
===================================================================
--- trunk/docs/en/ogc/wms_time.txt 2011-08-28 07:17:01 UTC (rev 12497)
+++ trunk/docs/en/ogc/wms_time.txt 2011-08-28 08:24:33 UTC (rev 12498)
@@ -74,12 +74,21 @@
return the valid time values for the layer. The value defined here should be a
valid time range. (more on this in 'Specifying Time Extents' below)
-- *wms_ timeitem*: (*Mandatory*) this is the name of the field in the DB that
+- *wms_timeitem*: (*Mandatory*) this is the name of the field in the DB that
contains the time values.
- *wms_timedefault*: (*Optional*) this value is used if it is defined and the
TIME value is missing in the request.
+It is also recommended to set a `LAYER` `FILTER` for the time layer to
+provide a default time also for non-WMS requests. If the time item is
+`mytime`, and the time format is "YYYYMMDD" the following filter could
+be used:
+
+.. code-block:: mapfile
+
+ FILTER ([mytime] = '20041012')
+
Specifying Time Extents
***********************
More information about the mapserver-commits
mailing list