<html><body><html><head><meta charset="utf-8">
      
      
        </head><body><div id="compose-body-wrapper" dir="auto"><div dir="auto">Dear mapserver community</div><div dir="auto"><br></div><div dir="auto">I am trying to set a WMS where the a&#xA0;GetFeatureInfo&#xA0; will support more than one INFO_FORMAT, currently I have text/html implemented [1],&#xA0; which uses a layer level implementation.&#xA0; This works fine when you have only one format&#xA0;<span style>[2]</span><span style>.</span></div><div dir="auto"><br></div><div dir="auto">Now I need to have 2 formats,&#xA0; html and geojson/json.&#xA0; </div><div dir="auto"><br></div><div dir="auto">Documentation is very clear that the best strategy&#xA0; is to use the OUTPUTFORMAT,&#xA0; each output format associated with a specific template, this works fine .</div><div dir="auto"><br></div><div dir="auto">Problem is that all examples that I see using outputformat have a very clear layer name indication (below is nums)</div><div dir="auto"><br></div><div dir="auto"><pre><span class="o">//</span> <span class="n">mapserver</span> <span class="n">template</span>
<span class="p">[</span><span class="n">resultset</span> <span class="n">layer</span><span class="o">=</span><span class="n">mums</span><span class="p">]</span></pre></div><div dir="auto"><br></div><div dir="auto">This simplely doesn't work if you have 100 layers on a mapfile and we need a output format template for all of them,&#xA0; I have search for some generic parameter that could relay the layer name being used but no luck. With setting the layer name it doesn't work!! And arguments can't be replaced&#xA0;</div><div dir="auto"><br></div><div dir="auto">Question :</div><div dir="auto">- How can I have a generic&#xA0; [resultset ] that can be use by multiple layers???? [3]&#xA0;</div><div dir="auto">- Template at layer level works good but I&#xA0; don't think we can support 2 formats there, is this correct???&#xA0;</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">System:</div><div dir="auto">mapserver7.6.0 gdal2.4 proj4</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thank you&#xA0;</div><div dir="auto">Jorge de Jesus</div><div dir="auto"><br></div><div dir="auto">[1]&#xA0;<a href="https://maps.isric.org/mapserv?map=/map/bdod.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=47.130647,8.931116,48.604188,29.54223&CRS=EPSG:4326&WIDTH=1073&HEIGHT=445&LAYERS=bdod_0-5cm_Q0.5&STYLES=&FORMAT=image/tiff&QUERY_LAYERS=bdod_0-5cm_Q0.5&INFO_FORMAT=text/html&I=509&J=359&FEATURE_COUNT=1" target="_blank">https://maps.isric.org/mapserv?map=/map/bdod.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=47.130647,8.931116,48.604188,29.54223&CRS=EPSG:4326&WIDTH=1073&HEIGHT=445&LAYERS=bdod_0-5cm_Q0.5&STYLES=&FORMAT=image/tiff&QUERY_LAYERS=bdod_0-5cm_Q0.5&INFO_FORMAT=text/html&I=509&J=359&FEATURE_COUNT=1</a></div><div dir="auto"><br></div><div dir="auto">[2] https://gis.stackexchange.com/questions/343901/getfeatureinfo-template-of-mapserver-not-replacing-values<br></div><div dir="auto"><br></div><div dir="auto">[3]&#xA0;<span style>https://pastebin.com/FdepGTf7</span></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto" id="tmjah_g_1299"><p><font face="Calibri, sans-serif"><span style="font-size: 14.6667px;">ISRIC &#x2014; World Soil Information</span></font><br></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p></o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">PO Box 353&#xA0;|&#xA0;6700 AJ Wageningen<o:p></o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://www.wageningencampus.nl/nl/campus/over/gebouwen/show/Gaia-gebouwnummer-101.htm" title="https://www.wageningencampus.nl/nl/campus/over/gebouwen/show/Gaia-gebouwnummer-101.htm" target="_blank" style="font-family: Calibri, sans-serif; text-decoration: underline;"><span style="text-decoration-line: none;">Droevendaalsesteeg 3 (Building&#xA0;101)&#xA0;</span><span style="text-decoration-line: none;">|&#xA0;6708 PB Wageningen</span></a><o:p></o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">The Netherlands<o:p></o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Telephone (Secretariat):&#xA0;+31 317 483735<o:p></o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="PT-BR">E-mail:&#xA0;</span><a href="blocked::mailto:soil.isric@wur.nl" title="blocked::mailto:soil.isric@wur.nl" target="_blank" style="font-family: Calibri, sans-serif; text-decoration: underline;"><span lang="PT-BR">info@isric.org</span></a></p><div><i style="font-family: Calibri, sans-serif; text-decoration: underline;"><br></i></div></div><br></div>
      
    
  </body></html></body></html>