<div dir="ltr"><div>Hello all,<br></div><div><br></div><div>I have implemented WMS-T for vector shape files (each of which is captured at different time frame) using tileindex (the tool I have used is ogrtindex.exe), and this worked successfully for GetMap request. But the problem here is GetFeatureInfo does not work properly while making request with different values of time field.</div>
<div><br></div><div>Below is my layer section in the map file.</div><div><br></div><div>LAYER</div><div><span class="" style="white-space:pre"> </span>NAME "states1"</div><div><span class="" style="white-space:pre"> </span>DEBUG 5</div>
<div><span class="" style="white-space:pre"> </span>TYPE POLYGON</div><div><span class="" style="white-space:pre"> </span>TILEINDEX "C:\data\vector\shapeData\testdata\vector.shp"</div><div><span class="" style="white-space:pre"> </span>TILEITEM "location"</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>STATUS ON</div><div><br></div><div><span class="" style="white-space:pre"> </span>METADATA</div><div><span class="" style="white-space:pre"> </span>"wms_title" "states1" </div>
<div><span class="" style="white-space:pre"> </span>"wms_include_items" "all"</div><div><span class="" style="white-space:pre"> </span>"wms_dataurl_format" "text/HTML" </div><div>
<span class="" style="white-space:pre"> </span>"ows_include_items" "all" </div><div><span class="" style="white-space:pre"> </span>"wms_exceptions_format" "application/vnd.ogc.se_xml" </div>
<div><span class="" style="white-space:pre"> </span>'wms_srs' 'EPSG:42304' </div><div><span class="" style="white-space:pre"> </span>"wms_timeformat" "YYYYMMDD"</div><div>
<span class="" style="white-space:pre"> </span>"wms_timeextent" "20070301/20070302"</div><div><span class="" style="white-space:pre"> </span>"wms_timeitem" "Time" </div><div><span class="" style="white-space:pre"> </span>"wms_timedefault" "20070301"</div>
<div><span class="" style="white-space:pre"> </span>END</div><div><br></div><div><span class="" style="white-space:pre"> </span>#FILTERITEM "Time"</div><div><span class="" style="white-space:pre"> </span>#FILTER "20070301"</div>
<div><span class="" style="white-space:pre"> </span>EXTENT -97.238976 41.619778 -82.122902 49.385620</div><div><span class="" style="white-space:pre"> </span>TEMPLATE "Mytemplate.html"</div><div><span class="" style="white-space:pre"> </span>PROJECTION</div>
<div><span class="" style="white-space:pre"> </span>"init=epsg:42304" </div><div><span class="" style="white-space:pre"> </span>END</div><div><br></div><div><span class="" style="white-space:pre"> </span>CLASS</div>
<div><span class="" style="white-space:pre"> </span>NAME "MyClass"</div><div><span class="" style="white-space:pre"> </span>STYLE</div><div><span class="" style="white-space:pre"> </span>COLOR 232 232 232</div>
<div><span class="" style="white-space:pre"> </span>OUTLINECOLOR 32 32 32</div><div><span class="" style="white-space:pre"> </span>END</div><div><span class="" style="white-space:pre"> </span>END</div><div><span class="" style="white-space:pre"> </span>END # Layer</div>
<div><br></div><div>In the above example, the dbf of TileIndex looks like </div><div> LOCATION </div><div> C:\data\vector\shapeData\20070301\states1.shp,0 </div><div> C:\data\vector\shapeData\20070302\states1.shp,0</div>
<div><br></div><div>Each of these individual shape files has time field (i.e. 1st states1.shp has 20070301 and next one has 20070302).</div><div><br></div><div>When I make a request using the URL as </div><div>"http://<mapserverPath>?map=<mapfilePath>&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070301", it correctly returns back the feature information as follows.</div>
<div><br></div><div>GetFeatureInfo results:</div><div><br></div><div>Layer 'states1'</div><div> Feature 38: </div><div> AREA = '16.354'</div><div> PERIMETER = '22.325'</div><div> STATESP020 = '1353'</div>
<div> STATE = 'Wisconsin'</div><div> STATE_FIPS = '55'</div><div> CLASS = 'land'</div><div> Time = '20070301'</div><div> </div><div><br></div><div>But making the request using the URL as </div>
<div>"http://<mapserverPath>?map=<mapfilePath>&LAYERS=states1&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:42304&BBOX=-97.238976,41.619778,-82.122902,49.385620&WIDTH=256&HEIGHT=256&X=99&Y=134&INFO_FORMAT=text/plain&QUERY_LAYERS=states1&Time=20070302" results to "Internal Server Error".</div>
<div><br></div><div>Note: The error log is empty even after setting Debug level to 5.</div><div><br></div><div>I'd really appreciate the help. Thanks!</div><div><br></div><div>Thanks,</div><div>Hari</div></div>