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
_______________________________________________ MapServer-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
