Hi,<div><br></div><div>Here the results of some tests I&#39;ve made yesterday to really understand the process of a GetFeatureInfo call with MapServer.  Please let me know if I&#39;am mistaking:</div><div><br></div><div><span class="Apple-style-span" style="text-decoration: underline;">1) GetFeatureInfo with INFO_FORMAT=text/plain</span></div>
<div>Result: the tag TEMPLATE must be specify (with a dummy file).  Then you can control the returned values with the METADATA tag ows_&lt;include|exclude&gt;_items or wms_&lt;include|exclude&gt;_items </div><div><br></div>
<div><div><span class="Apple-style-span" style="text-decoration: underline;">2) GetFeatureInfo with INFO_FORMAT=gml</span></div><div>Result: the tag DUMP must be set to TRUE and the TEMPLATE must be specify (with a dummy file).  Then you can control the returned value with the METADATA tag gml_&lt;include|exclude&gt;_items </div>
<div><br></div><div><div><span class="Apple-style-span" style="text-decoration: underline;">3) GetFeatureInfo with INFO_FORMAT=text/html</span></div><div>Result: the only required tag is TEMPLATE (a dummy file will return no data).  But if you supply a valid html template, ALL the field will be returned because the METADATA tag ows_&lt;include|exclude&gt;_items or wms_&lt;include|exclude&gt;_items are ignored.  So if my layer is a Oracle spatial table, I must then create a view to expose only the field I want.  Would it be relevant to control the field with the &quot;wms_include_items&quot; tag ? Is there a reason why is not working that way?</div>
<div><br></div><div>MartinOuellet</div><div><br></div></div></div><div><br></div>