[mapserver-users] Reference Map must be a GIF????

Worth Lutz wal3 at mindspring.com
Fri May 6 11:18:55 PDT 2011


When did the restriction, "the Reference Map base image must be a .gif",
start being enforced?

 

I now see it in my old printed copy (version 5.2) of the documentation.  I
checked there to see if this was new to MapServer version 6 as I found it
first in the online documentation.  Obviously I had never read the
documentation closely in this area.

 

All my reference maps are "png" drawn with Mapserver (aggpng I think) and
work in version 5.6.

 

When my try/catch throws an exception trying to draw this reference map, the
exception message is an empty string.

 

Through testing and looking at the apache logs, I find that there are
MapServer Errors in the MapServer errorObj and PHP Notices and Warning.
These are:

 

[Mapserver Error] msDrawREferenceMap() : error loading reference image
/data/mapfiles/ref_maps/. 

[MapServer Error] readImage(): unsupported pixmap format/n in .

 

Is this truly a change in the image type restriction for Reference Maps or
is it just an change in the checking for errors when the MapScriptException
was added?

 

Was I just lucky my ".png" reference maps worked in the past?  Am I the only
one to try this?  I don't have many to convert but wanted to point this out
so it could be added to the Migration Guide if it must remain a restriction.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110506/86811af3/attachment.htm>


More information about the MapServer-users mailing list