<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hello everybody, <br />
My question is about the GetFeatureInfo request and how to get the related tilmestep in the response. <br />
In my mapfile I have <br />
<br />
<br />
LAYER <br />
...<br />
<span style="white-space:pre">"wms_timeitem"  "time"</span><br />
<span style="white-space:pre">"wms_timeextent"        "2021-11-19T06:00:00Z/2021-12-03T00:00:00Z/PT1H"</span><br />
<span style="white-space:pre">"wms_timeformat"        "YYYY-MM-DDTHH:MM:SSZ”</span><br />
...<br />
TILEINDEX “..."<br />
TILEITEM “..."<br />
END<br />
<br />
Then I have a .html template in order to customize the GetFeatureInfo, in particular something like <br />
<br />
[resultset layer=layerName]<br />
[feature ]<br />
{<br />
"type": "Feature",<br />
"id": "layerName",<br />
"geometry": {<br />
"type": "Point",<br />
"coordinates": [<br />
[x],<br />
[y]<br />
]<br />
},<br />
"properties": {<br />
"value":[value_0],<br />
"time": "[time]",<br />
"lon": [maplon],<br />
"lat": [maplat],<br />
"bbox": "[bbox]"<br />
}<br />
},<br />
[/feature]<br />
[/resultset]<br />
<br />
Everything works fine, but I have a problem with the [time] field. In particular, if I send a request with more than one timestep (TIME=2021-11-26T00:00:00Z,2021-11-26T01:00:00Z), I don’t know how to print the information related to the current tilmestep. In fact the [time] attribute just print the same information I send in the request.<br />
<br />
I mean, I would like to have as for the value_0, a “dynamic” field with the related tilmestep in order to know what timestep it corresponds to the printed value. <br />
<br />
Something like <br />
<br />
 {"type": "Feature",<br />
            "id": “layerName",<br />
            "geometry": {<br />
                "type": "Point",<br />
                "coordinates": [<br />
                    -2103938.4,<br />
                    4664535.9<br />
                ]<br />
            },<br />
            "properties": {<br />
                "value": 19.215765,<br />
                "time": "2021-11-26T00:00:00Z",<br />
                "lon": -18.878687,<br />
                "lat": 38.626836,<br />
                "bbox": "-9782979.368056435,2651593.0053237937,8424815.600622647,9441583.212393695"<br />
            }<br />
        },<br />
{"type": "Feature",<br />
            "id": “layerName",<br />
            "geometry": {<br />
                "type": "Point",<br />
                "coordinates": [<br />
                    -2103938.4,<br />
                    4664535.9<br />
                ]<br />
            },<br />
            "properties": {<br />
                "value": 26.384709,<br />
                "time": "2021-11-26T01:00:00Z",<br />
                "lon": -18.878687,<br />
                "lat": 38.626836,<br />
                "bbox": "-9782979.368056435,2651593.0053237937,8424815.600622647,9441583.212393695"<br />
            }<br />
        }<br />
<br />
Hope I was clear with my request. <br />
Thanks in advance, <br />
Best Regards,<br />
Andrea</div>
</div>
</body>
</html>