Hi mapserver users list

I have a mapserver with getfeatureinfo available. This seems to return the correct value for the selected timestamp for the given layer when used directly.

But when I try to reach the same info, ie. getfeatureinfo, from mapcache a wrong timestamp is passed to mapserver and then the wrong values are returned.

The request received by mapcache(as seen in the logs):
2023-04-14T13:34:20.304781696Z 172.16.16.234 - - [14/Apr/2023:13:34:20 +0000] "GET /okd-satellite &SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&LAYERS=ash_meteosat_0deg&QUERY_LAYERS=ash_meteosat_0deg&SRS=EPSG%3A3857&BBOX=-3396560.8725830186,6408480.4514,7422652.026383018,11520588.9031&WIDTH=1782&HEIGHT=842&X=333&Y=704&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=&&TIME=2023-04-11T07%3A15%3A00Z

The request received by mapserver(as seen in the logs):
2023-04-14T13:34:20.303555611Z 172.16.2.224 - - [14/Apr/2023:13:34:20 +0000] "GET /okd-satellite?VERSION=1.1.1&REQUEST=GetFeatureInfo&SERVICE=WMS&STYLES=&FORMAT=image%2fpng&LAYERS=ash_meteosat_0deg&MAP=%2fconfig%2fmapserver-products.map&BBOX=-3396560.872583%2c6408480.451400%2c7422652.026383%2c11520588.903100&WIDTH=1782&HEIGHT=842&SRS=EPSG%3a3857&X=333&Y=704&INFO_FORMAT=text%2fhtml&QUERY_LAYERS=ash_meteosat_0deg&time=2023-03-25T16%3a00%3a00Z HTTP/1.1" 200 743 "-" "mod-mapcache/1.11dev"

So what happens. The mapcache request looks correct with time=2023-04-11T07:15:00Z, then I guess this request is forwarded to mapserver, but I think it is without the TIME parameter. Why I think this is because the request I see in the mapserver logs has the default time stamp as given in my mapfile.

Are there some configuration I'm missing? I had a look at https://github.com/MapServer/mapcache/blob/main/mapcache.xml.sample#L753-L763 to see how getfeatureinfo should be configured, but no other information. My mapcache source config looks like

    <source name="ash_meteosat_0deg_source" type="wms">
        <http>
            <url>http://<my-url>?</url>
        </http>
        <getmap>
            <params>
                <FORMAT>image/png</FORMAT>
                <LAYERS>ash_meteosat_0deg</LAYERS>
                <MAP><my map file></MAP>
            </params>
        </getmap>
        <getfeatureinfo>
            <info_formats>text/html</info_formats>
            <params>
                <QUERY_LAYERS>ash_meteosat_0deg</QUERY_LAYERS>
            </params>
        </getfeatureinfo>
    </source>

Any hints are appreciated.

Trygve
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to