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

thomas bonfort thomas.bonfort at gmail.com
Thu May 12 00:48:24 PDT 2011


looking through the code, both GD and the other renderers should
support loading GIF and PNG images. (This also concerns pixmap
symbols, legend icons, etc... i.e. anything which requires loading an
image file outside of GDAL)

Can you supply the and the reference image you are using ?

regards,
thomas

On Fri, May 6, 2011 at 20:18, Worth Lutz <wal3 at mindspring.com> wrote:
> 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.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



More information about the MapServer-users mailing list