<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Consolas;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.html-tag
        {mso-style-name:html-tag;}
span.text
        {mso-style-name:text;}
span.html-attribute
        {mso-style-name:html-attribute;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.html-attribute-name
        {mso-style-name:html-attribute-name;}
span.html-attribute-value
        {mso-style-name:html-attribute-value;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Dear All<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Has anyone been able to get the wms_getmap_formatlist parameter to work when configuring a map file to define a WMS?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">I’m using MapServer 7.0.1 and when I don’t include the wms_getmap_formatlist parameter in my .map file the WMS GetCapabilities document reports the following GetMap image formats:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><GetMap><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>image/png</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>image/jpeg</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>image/png; mode=8bit</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>application/x-pdf</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>image/svg+xml</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>image/tiff</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>application/vnd.google-earth.kml+xml</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Format>application/vnd.google-earth.kmz</Format><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><DCPType><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><HTTP><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Get><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:144.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></Get><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Post><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:144.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></Post><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></HTTP><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></DCPType><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></GetMap><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">But when I include the wms_getmap_formatlist parameter in my .map file as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:Consolas">"wms_getmap_formatlist"    "image/bmp, image/png"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">no image formats are reported in the WMS GetCapabilities document:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><GetMap><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><DCPType><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><HTTP><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Get><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:144.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></Get><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><Post><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:144.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></Post><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></HTTP><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></DCPType><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:EN-GB"></GetMap><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">I’m seeing the same behaviour when I request both version 1.1.1 and 1.3.0 WMSs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Many thanks in advance of any help that people can provide.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Best wishes, Simon.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
</div>
<hr>
<small>This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material
 supplied to NERC may be stored in an electronic records management system</small>.
<hr>
</body>
</html>