<div dir="auto"><div dir="auto">No that should work, but you need MAP.LAYER.TEMPLATE set on every layer in the group otherwise MapServer will error out as without TEMPLATE defined, query isn't allowed for that layer (a group is just a shortcut to specify all layers in it).</div><div><div dir="auto"><br></div><div dir="auto">So you need the DEM layer with a valid template and the cosmetic layer with just something like</div><div dir="auto"><br></div><div dir="auto">TEMPLATE 'dummy'</div><div dir="auto"><br></div><div dir="auto">Where the 'dummy' file doesn't actually need to exist.</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 3, 2017 10:51 AM, "andy" <<a href="mailto:aborruso@gmail.com">aborruso@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_3934907455077122827markdown-here-wrapper"><p style="margin:0px 0px 1.2em!important">Hi James,<br>first of all thank you.</p><div class="quoted-text">
<p style="margin:0px 0px 1.2em!important">On 3 February 2017 at 17:30, James Klassen <<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>> wrote:</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="m_3934907455077122827markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">There isn't a way to tell it to use one layer for GetMap but some other layer for GetFeatureInfo.</div></blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
</div><p style="margin:0px 0px 1.2em!important">I thought that a Group could solve my problem. I thought to put in this group my “cosmetic” file and my data file, and than run a GetFeatureInfo on this group and obtain the info only for the layer in which I set a template file (the data file). Below an example.</p>
<p style="margin:0px 0px 1.2em!important">But, it seems not possible.</p>
<p style="margin:0px 0px 1.2em!important">Thank you again</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important"> LAYER
DATA "dataFile.tif"
EXTENT 369957.267038251 4124951.49692997 378066.716402869 4133060.94629459
GROUP "DEMG"
METADATA
"coordsys_name" "WGS 84 / UTM zone 33N"
"ows_title" "dataFile"
"identify_record" "dummy.html"
"wms_group_title" "DEMG"
END # METADATA
NAME "dataFile"
PROJECTION
"proj=utm"
"zone=33"
"datum=WGS84"
"units=m"
"no_defs"
END # PROJECTION
STATUS ON
TYPE RASTER
TEMPLATE "dummy.html"
UNITS METERS
OPACITY 0
END # LAYER
LAYER
DATA "cosmeticFile.tif"
EXTENT 369957.267038251 4124951.49692997 378066.716402869 4133060.94629459
GROUP "DEMG"
METADATA
"coordsys_name" "WGS 84 / UTM zone 33N"
"ows_title" "cosmeticFile"
"wms_group_title" "DEMG"
END # METADATA
NAME "cosmeticFile"
PROJECTION
"proj=utm"
"zone=33"
"datum=WGS84"
"units=m"
"no_defs"
END # PROJECTION
STATUS ON
TYPE RASTER
UNITS METERS
END # LAYER
</code></pre><hr><div class="quoted-text">
<p style="margin:0px 0px 1.2em!important">Andrea Borruso<br> website: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>38° 7’ 48” N, 13° 21’ 9” E, EPSG:4326</p>
</div><hr>
<p style="margin:0px 0px 1.2em!important"> “cercare e saper riconoscere chi e cosa,</p><div class="quoted-text"><br> in mezzo all’inferno, non è inferno,<br> e farlo durare, e dargli spazio”</div><p></p>
<p style="margin:0px 0px 1.2em!important"> Italo Calvino</p>
<div title="MDH:PGRpdiBjbGFzcz0iZ21haWxfZXh0cmEiPkhpIEphbWVzLDwvZGl2PjxkaXYgY2xhc3M9ImdtYWls
X2V4dHJhIj5maXJzdCBvZiBhbGwgdGhhbmsgeW91LjwvZGl2PjxkaXYgY2xhc3M9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wvZGl2PjwvZGl2Pgo8L2Rpdj4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div></div>
</blockquote></div><br></div></div></div>