<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">https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3</a></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" 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>