<div dir="auto">Hmmmm... Looks right to me. Will need to run a test locally and report back.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 5, 2022 at 11:14 AM andy <<a href="mailto:aborruso@gmail.com">aborruso@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I have this map file [1] in which I use this simple class expression "EXPRESSION ([year] < 1976)".</div><div>Starting from it, I'm able to create the png output I want, running:</div><div><br></div><div>mapserv -nh "QUERY_STRING=map=data.map&mode=map" >out.png<br></div><div><br><div>But if I replace the hard coded year value with '%year%', and then I run this command</div><div><br></div><div>mapserv -nh "QUERY_STRING=map=data.map&mode=map&year=1976" >out.png<br></div><div><br></div><div>I have a wrong PNG output, in which the layer that has the run-time substitution variable is not rendered properly, because it seems that the value is not collected.</div><div><br></div><div>What's wrong with my steps? How to use run-time substitution via cli?</div><div><br></div><div>Thank you,</div><div><br></div><div>Andrea</div><div><br></div><div>[1] <a href="https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3" target="_blank">https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3</a></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="font-size:small">___________________</span><br></div><div dir="ltr"><span style="font-size:small"><br></span></div><div dir="ltr">Andrea Borruso<br>
website: <a href="https://medium.com/tantotanto" target="_blank">https://medium.com/tantotanto</a><br>38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br><span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e cosa,<br>
 in mezzo all’inferno, non è inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div></div>