[mapserver-users] How Interval is defined for WMS-T

Yves Jacolin yves.jacolin at camptocamp.com
Tue Feb 16 06:21:17 PST 2016


Hello,

I have a WMS-T layer. The datasource is in a postgis layer. The SQL request
send by MapServer is something like this:

("timestamp" between date_trunc('second',timestamp
'2016-02-17T15:00:00.000Z') and date_trunc('second',timestamp
'2016-02-17T15:00:00.000Z') + interval '1 second' - interval '1 second')

I understand the + interval '1 second' - interval '1second', but I can't
understand how the first interval resolution come from, see [1].

I guess this is calculated from wms_timedefault or wms_timeextent. Here my
METADATA LAYER of my mapfile:

            "wms_timeextent" "2016-02-16T22:20/2016-02-17T21:20/PT1H"
            "wms_timeitem" "timestamp"
            "wms_timedefault" "2016-02-16T23:20"

Any idea how I can "force" the interval resolution to minute?

Thanks,

Y.
[1]
https://github.com/mapserver/mapserver/blob/branch-7-0/mappostgis.c#L3389
-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160216/416b7496/attachment.html>


More information about the mapserver-users mailing list