Cascading WMS-T

Tim Schaub noreply at GEOCARTIC.COM
Fri Dec 1 20:41:54 EST 2006


Hello-

I'm trying to set up a WMS that acts as a server and client for a layer with
time support.  I want to draw from the JPL WMS and serve up the data in a
different projection.

My layer definition includes the time metadata:
        "wms_timeitem" "TIME"
        "wms_timeextent" "2006-01-01/2006-09-22/P1D"
        "wms_timedefault" "2006-05-27"
        "wms_timeformat" "YYYY-MM-DD"
(Full mapfile here: http://rafb.net/paste/results/WpTu5V58.html)

Using shp2img, I get the output I'd expect (without any TIME parameter).

With python mapscript, the request (to jpl) is not made unless I comment out
the wms_timeitem metadata.  With the metadata included, no request is made.
Without that line of metadata, a request is made (without the TIME
parameter).

A quick python script to reproduce this is copied below (and here:
http://rafb.net/paste/results/NMmpaC12.html).

Is this not the correct way to cascade WMS-T?

Thanks for any help,
Tim


import mapscript
 
map = mapscript.mapObj('wmst.map')
req = mapscript.OWSRequest()
 
req.setParameter('SERVICE', 'WMS')
req.setParameter('VERSION', '1.1.1')
req.setParameter('REQUEST', 'GetMap')
req.setParameter('LAYERS', 'daily_terra')
req.setParameter('TIME', '2006-05-25')
req.setParameter('STYLES', '')
req.setParameter('EXCEPTIONS', 'application/vnd.ogc.se_inimage')
req.setParameter('FORMAT', 'image/jpeg')
req.setParameter('SRS', 'EPSG:26912')
req.setParameter('BBOX', '504000,4852000,568000,4916000')
req.setParameter('WIDTH', '256')
req.setParameter('HEIGHT', '256')
 
mapscript.msIO_installStdoutToBuffer()
map.OWSDispatch(req)
 
content_type = mapscript.msIO_stripStdoutBufferContentType()
content = mapscript.msIO_getStdoutBufferBytes()
 
image = file('wmst.png', 'wb')
image.write(content)
image.close()



More information about the mapserver-users mailing list