<div dir="ltr">I've applied the fix to branch-6-4, branch-7-0 and master.<div><br></div><div>regards,</div><div>Thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 September 2016 at 09:35, Anuruddha Abhayasinghe <span dir="ltr"><<a href="mailto:A.Abhayasinghe@bom.gov.au" target="_blank">A.Abhayasinghe@bom.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We use perl map script to compile our map part files in to a single map file ( without includes) before we move them in to production.<u></u><u></u></p>
<p class="MsoNormal">Following is how we use the perl map script to compile map parts file ( with many includes) in to a single map file,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> #!/usr/bin/perl<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">use mapscript;<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">$map = new mapscript::mapObj('wms_parts.<wbr>map');<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36.0pt">$map->save('wms.map');<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We found a problem in this process. When we use “PERCENTAGES” in our map part files the complied map file contain the word “PERCENTATGES” instead of “PERCENTAGES” ( note the additional T).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We did a quick scan on the code base and found the following statement in “mapfile.c” which is causing this behaviour,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">writeKeyword(stream, indent, "UNITS", layer->units, 9, MS_INCHES, "INCHES", MS_FEET ,"FEET", MS_MILES, "MILES", MS_METERS, "METERS", MS_KILOMETERS, "KILOMETERS", MS_NAUTICALMILES, "NAUTICALMILES", MS_DD, "DD", MS_PIXELS, "PIXELS", MS_PERCENTAGES,
"PERCENTATGES");<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is this something which can be fixed?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:9.0pt;color:black">Regards<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;color:black">Anuruddha Abhayasinghe</span></b><span style="font-size:12.0pt;color:black"><br>
<img width="246" height="77" src="cid:image001.gif@01D20DE5.3F2755A0" alt="Description: Description: Description: Description: http://web.bom.gov.au/eiab/publishing/images/bureau_logo.gif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Geospatial Data and Services</span><span style="font-size:9.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Delivery Section / Build Branch</span><span style="font-size:9.0pt;color:black">
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;color:black">Bureau of Meteorology<br>
GPO Box 1289 Melbourne VIC 3001<br>
Level 6, 700 Collins Street, Docklands VIC 3008<br>
Tel: <a href="tel:%2B61%203%209669%204589" value="+61396694589" target="_blank">+61 3 9669 4589</a> | <a href="mailto:aabhayas@bom.gov.au" target="_blank"><span style="color:blue">aabhayas@bom.gov.au</span></a><br>
<a href="http://www.bom.gov.au/" target="_blank"><span style="color:blue">www.bom.gov.au</span></a></span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-dev</a><br></blockquote></div><br></div>