[mapserver-users] WMS-T in WMS Client
pe_lord
pe_lord at yahoo.ca
Wed Sep 13 09:46:21 PDT 2017
I try to cascade some public wms service in my local (dev). The public wms
has wms-t capabilities.
When I call this public WMS
<https://ws.mapserver.transports.gouv.qc.ca/swtq?service=wms&request=getcapabilities>
, on layer histo_stations_meteoroutieres.
Here an example of getfeatureinfo
<https://ws.mapserver.transports.gouv.qc.ca/swtq?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-9147720.13647237792611122,4465573.1755253542214632,-6539533.15300130378454924,7715117.61394833214581013&CRS=EPSG:3857&WIDTH=732&HEIGHT=912&LAYERS=histo_stations_meteoroutieres&STYLES=&FORMAT=image/png&QUERY_LAYERS=histo_stations_meteoroutieres&INFO_FORMAT=text/html&I=372&J=490&FEATURE_COUNT=100&TIME=20170526/20170601>
with a time filter.
When I use this layer as a wms client layer within mapserv, I'm unable to
get a filtered result. Here my cascaded wms call.
call
<http://1.1.1.1:8080/cgi-bin/swtq.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=-9147720.13647237792611122,4465573.1755253542214632,-6539533.15300130378454924,7715117.61394833214581013&CRS=EPSG:3857&WIDTH=732&HEIGHT=912&LAYERS=cascade_histo_stations_meteoroutieres&STYLES=&FORMAT=image/png&QUERY_LAYERS=cascade_histo_stations_meteoroutieres&INFO_FORMAT=text/html&I=372&J=490&FEATURE_COUNT=100&TIME=20170526/20170601>
Here how I config Mapserver 7.0.4
LAYER
NAME "cascade_histo_stations_meteoroutieres"
TYPE RASTER
STATUS ON
CONNECTION "https://ws.mapserver.transports.gouv.qc.ca/swtq?"
CONNECTIONTYPE WMS
PROJECTION
"init=epsg:3857"
END
TEMPLATE 'VOID'
METADATA
"wms_title" "Cascade sm"
"wms_name" "histo_stations_meteoroutieres"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_timeitem" "YYYY-MM-DD"
"wms_timeextent" "1980-01-01/2020-06-01"
"wms_timeitem" "date_mesu"
"wms_timeformat" "YYYY-MM-DD"
END
END
Am I missing something on my mapfile configuration? Here my log with a
debug 5 level. There is no param name TIME=...
[Wed Sep 13 16:41:13 2017].331455 HTTP: Starting to prepare HTTP requests.
[Wed Sep 13 16:41:13 2017].331871 HTTP request: id=2,
https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres&REQUEST=GetFeatureInfo&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=912&QUERY_LAYERS=histo_stations_meteoroutieres&VERSION=1.1.1&SRS=EPSG:3857&WIDTH=732&BBOX=-9145938.5879864,4467354.72401133,-6541314.70148728,7713336.06546235&TRANSPARENT=TRUE&FEATURE_COUNT=100&INFO_FORMAT=text%2Fhtml&X=372&EXCEPTIONS=application/vnd.ogc.se_xml&Y=490
[Wed Sep 13 16:41:13 2017].331920 HTTP request: id=2,
https://ws.mapserver.transports.gouv.qc.ca/swtq?LAYERS=histo_stations_meteoroutieres&REQUEST=GetLegendGraphic&SERVICE=WMS&FORMAT=image/png&STYLES=&QUERY_LAYERS=histo_stations_meteoroutieres&VERSION=1.1.1&SRS=EPSG:3857&TRANSPARENT=TRUE&SCALE=1.34668e+07&LAYER=histo_stations_meteoroutieres
[Wed Sep 13 16:41:13 2017].331941 HTTP: Before download loop
[Wed Sep 13 16:41:13 2017].668641 msHTTPWriteFct(id=2, 678 bytes)
[Wed Sep 13 16:41:13 2017].711841 msHTTPWriteFct(id=2, 8094 bytes)
[Wed Sep 13 16:41:13 2017].715295 msHTTPWriteFct(id=2, 7685 bytes)
[Wed Sep 13 16:41:13 2017].715377 HTTP: After download loop
[Wed Sep 13 16:41:13 2017].715398 msHTTPExecuteRequests() timing summary per
layer (connect_time + time_to_first_packet + download_time = total_time in
seconds)
[Wed Sep 13 16:41:13 2017].715414 Layer 2: 0.108 + 0.272 + 0.111 = 0.491s
[Wed Sep 13 16:41:13 2017].715442 Layer 2: 0.198 + 0.139 + 0.198 = 0.534s
[Wed Sep 13 16:41:13 2017].756428 freeLayer(): freeing layer at
0xf4cd4f42b0.
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
More information about the MapServer-users
mailing list