[mapserver-dev] Perl map script bug [SEC=UNCLASSIFIED]

thomas bonfort thomas.bonfort at gmail.com
Tue Sep 13 04:37:36 PDT 2016


I've applied the fix to branch-6-4, branch-7-0 and master.

regards,
Thomas

On 13 September 2016 at 09:35, Anuruddha Abhayasinghe <
A.Abhayasinghe at bom.gov.au> wrote:

> Hi
>
>
>
> 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.
>
> Following is how we use the perl  map script to compile map parts file (
> with many includes) in to a single map file,
>
>
>
>                 #!/usr/bin/perl
>
> use mapscript;
>
> $map = new mapscript::mapObj('wms_parts.map');
>
> $map->save('wms.map');
>
>
>
> 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).
>
>
>
> We did a quick scan on the code base and found the following statement in
> “mapfile.c” which is causing this behaviour,
>
>
>
> 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");
>
>
>
>
>
> Is this something which can be fixed?
>
>
>
>
>
>
>
> *Regards*
>
> *Anuruddha Abhayasinghe*
> [image: Description: Description: Description: Description:
> http://web.bom.gov.au/eiab/publishing/images/bureau_logo.gif]
>
> Geospatial Data and Services
>
> Delivery Section / Build Branch
>
> Bureau of Meteorology
> GPO Box 1289 Melbourne VIC 3001
> Level 6, 700 Collins Street, Docklands VIC 3008
> Tel: +61 3 9669 4589 | aabhayas at bom.gov.au
> www.bom.gov.au
>
>
>
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20160913/fe832e89/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2583 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20160913/fe832e89/attachment.gif>


More information about the mapserver-dev mailing list