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

Worth Lutz wal3 at mindspring.com
Fri May 6 11:24:43 PDT 2011


I just looked again and I'm using .jpg and .png images but no .gif.  :-(

 

  _____  

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz
Sent: Friday, May 06, 2011 2:19 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Reference Map must be a GIF????

 

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.

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3619 - Release Date: 05/06/11

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


More information about the MapServer-users mailing list