<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p> </p>
<p>Hi everyone,</p>
<p>I'm struggling for WMS GetFeatureInfo from my OpenLayers application on a Mapserver WMS service (hosted by myself).</p>
<p>My goal is to do :</p>
<p>1. a GetCapabilities to know which layers are in my WMS Service (there are layer group);</p>
<p>2. a GetFeatureInfo when I click on the map to know which objects are located where I click;</p>
<p>When I do a GetFeatureInfo, it works well with the GML output but I can't get layer name in OpenLayers using ol.format.WMSGetFeatureInfo().readFeatures(). (I contact OL mailing list to know if it is possible).</p>
<p>So I think about another solution : to use the feature id WFS style ("layername"."objectid").</p>
<p>Is it possible in the MapFile to set this feature id with GML output ?</p>
<p>Or is it possible to return a WFS output for a WMS GetFeatureInfo request ?</p>
<p>And how do I do i ?</p>
<p> </p>
<p>Thanks for your help or any tips.</p>
<p>Have a great day.</p>
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Jonathan Beliën</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Geo-6</div>
</div>
<p> </p>
</body></html>