<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Good afternoon, all.<div class=""><br class=""></div><div class="">I am migrating a project from MS7 to the new Mapserver 8.0.0, and I've stumbled upon evidence that map_object notation support for CGI variable substitution may be broken.</div><div class=""><br class=""></div><div class="">Here's the relevant doc for CGI Controls:</div><div class=""><br class=""></div><div class=""><a href="https://mapserver.org/cgi/controls.html" class="">https://mapserver.org/cgi/controls.html</a> </div><div class=""><br class=""></div><div class="">Scoll down to the heading:  "Changing map file parameters via a form or a URL" </div><div class="">We have been using the map_object notation method to set custom image sizes and font sizes.</div><div class=""><br class=""></div><div class="">Excuse the messy query string.  The important parts are  "&map_size" and "&map.layer[...]"</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Courier New"; background-color: rgba(255, 255, 255, 0.8);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/var/www/cgi-bin/mapserv.cgi -nh "QUERY_STRING=mode=map&map=/usr/local/mapfiles/kempisty/nbm_view/foo.map&layer=genNoDec&model=blend&ver=v4.0&sector=conus&element=maxt&issuancetime=2022-10-06T14:00&validtime=2022-10-08T06:00&mapext=-3270279.3477121103%20-163255.0404466032%202666810.2533767014%203144901.0582670807&map_size=1215+677&map.layer[genNoDec].class[0].label[0]=SIZE+8" > /var/www/html/kempisty/foo7.png</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">MS7 gives a map size 1215x677 with labels rendered in 8 point font, as expected.  The same command, using mapserver 8 instead of 7, g</span>ives an image size 2345x1597 (map size as defined in the mapfile) with labels rendered in 13 point font (also as defined in the mapfile).</div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Using MS8... if I send &mapsize=1215+677 instead of &map_size=1215+677 ... I will get the image at the correct size.  So the predefined CGI control variables still work.  It suggests to me, it is only the map_object notation method that is broken.  Has that been disabled in MS8, or is it now subject to a new configuration requirement that I'm not aware of?</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Relevant string isolated for reference:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="font-family: "Courier New"; font-size: 14px; background-color: rgba(255, 255, 255, 0.8);" class="">&map_size=1215+677&map.layer[genNoDec].class[0].label[0]=SIZE+8"</span></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">I'm open to other methods of changing font size on the fly.  We did it this way because %var% runtime substitutions aren't supported for CLASS: LABEL: SIZE.</div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-Tim Kempisty</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></span></div></body></html>