WMS TIME Client Support

Eamonn O Tuama e.otuama at UCC.IE
Fri Mar 11 07:33:44 PST 2005


Hi There,
I'm using MapServer 4.4.1 both as a WMS server and client. The client uses
the mapserv.js / DHTML library. I'm trying to set up the client so that the
user can submit WMS time values to appropriately configured layers. This
works perfectly if I submit a GetMap request by typing it into the browser
address bar, but I cannot figure out a way of passing the WMS TIME parameter
to the server via a form in the client. I tried using the mapserv 'options'
attribute (e.g. ms.options = '&TIME=2005-02-01'), and also a hidden
variable, but while these parameters are being passed in the GET request (as
evidenced from the Apache access.log file - see the request from the client
'xxx.xxx.xxx.69' below), there does not seem to be way of getting the server
to use it when it makes the GetMap request (see request from the server
'xxx.xxx.xxx.70' below).

The other possibility - changing a map file parameter via an URL - does not
work either.

Any pointers on how to do this much appreciated.

Eamonn

--------------------------------------------------------------------------------------

The following are extracted from the apache access.log - IP address numbers
replaced by 'xxx'.


Request from client to MapServer
xxx.xxx.xxx.69 - -
[11/Mar/2005:14:33:05 +0000] "GET /cgi-bin/mapserv?mode=map&
map=/home/dispro/profiles/0.029876081186345105.map&
mapext=61606.75358931553+29577.50808080245+105516.11452420702+60878.50494090039&
mapsize=600+428&
layers=habitats&
TIME=2005-02-01
HTTP/1.1" 200 4044 "http://localhost/dispro/profiles/0.029876081186345105.html?
zoomsize=2&
map=%2Fhome%2Fdispro%2Fprofiles%2F0.029876081186345105.map&
program=%2Fcgi-bin%2Fmapserv&root=%2Fdispro%2F&
map_web_imagepath=%2Fhome%2Fmstmp%2F&
map_web_imageurl=%2Fmstmp%2F&
map_web_template=0.029876081186345105.html" "Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0"


GetMap request from server
xxx.xxx.xxx.70 - -
[11/Mar/2005:14:33:05 +0000] "GET
/cgi-bin/mapserv?map=/home/dismar/dispro-wms.map&&
LAYERS=habitats&
REQUEST=GetMap&
SERVICE=WMS&
FORMAT=image%2Fpng&
STYLES=&
HEIGHT=428&
QUERY_LAYERS=habitats&
VERSION=1.1.1&
SRS=EPSG:29900&
WIDTH=600&
BBOX=61606%2E753589315529%2C29567%2E001110740122%2C105516%2E11452420702%2C60889%2E011910962719&
TRANSPARENT=TRUE&
EXCEPTIONS=application/vnd.ogc.se_inimage HTTP/1.1" 200 4647 "-" "-"



More information about the MapServer-users mailing list