<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>Shouldn't the variable be wrapped in percentage signs?<br></div><div><br></div><div>EXPRESSION (%year% < 1976)<br></div><div><br></div><div>Seth</div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:http://geographika.net<br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Sat, Feb 5, 2022, at 6:13 PM, andy wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Hi,<br></div><div>I have this map file [1] in which I use this simple class expression "EXPRESSION ([year] < 1976)".<br></div><div>Starting from it, I'm able to create the png output I want, running:<br></div><div><br></div><div>mapserv -nh "QUERY_STRING=map=data.map&mode=map" >out.png<br></div><div><div><br></div><div>But if I replace the hard coded year value with '%year%', and then I run this command<br></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.<br></div><div><br></div><div>What's wrong with my steps? How to use run-time substitution via cli?<br></div><div><br></div><div>Thank you,<br></div><div><br></div><div>Andrea<br></div><div><br></div><div>[1] <a href="https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3">https://gist.github.com/aborruso/f40da26ec0cb9daa8cb7b308189ce3b3</a><br></div><div><div><br></div><div><br></div><div>-- <br></div><div dir="ltr" class="qt-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=""><span class="size" style="font-size:small;">___________________</span></span><br></div><div dir="ltr"><span style=""><span class="size" style="font-size:small;"></span></span><br></div><div dir="ltr"><div>Andrea Borruso<br></div><div> website: <a href="https://medium.com/tantotanto" target="_blank">https://medium.com/tantotanto</a><br></div><div>38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br></div><div><span style=""><span class="size" style="font-size:small;">___________________</span></span><br></div><div> <br></div><div> "cercare e saper riconoscere chi e cosa,<br></div><div>  in mezzo all’inferno, non è inferno, <br></div><div> e farlo durare, e dargli spazio"<br></div><div> <br></div><div> Italo Calvino<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div>_______________________________________________<br></div><div>MapServer-users mailing list<br></div><div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div><div><br></div></blockquote><div><br></div></body></html>