[MapServer-users] readGIF error meaning ?

Jean-Christophe Bastin jcbastin at thelis.be
Mon Nov 7 07:23:10 PST 2022


Hello,

I have many map files and I'm trying to get legends from them.
I followed the documentation I found : https://mapserver.org/ogc/wms_server.html#getlegendgraphic-request
The map file I test follows the requirements. I tried many calls :
http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.0.0
http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.0
http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.1.1
http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/mywms.map&SERVICE=WMS&layer=mylayer&REQUEST=getlegendgraphic&FORMAT=image/png&VERSION=1.3.0&SLD_VERSION=1.1.0

Each of them give me the error :
readGIF(): General error message. corrupted gif image?: Failed to read from file

What does that mean ? Am I missing a parameter in my call or something more in the map file that is not in the documentation ?
Or is it the kind of generic error "I can't generate your legend, just find by yourself why" ? XD

Many thanks !

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


More information about the MapServer-users mailing list