<div dir="ltr"><div><div><div>Hello all,<br><br></div>I am trying to use a WMS source that only works when requested in 'JPG' format, not 'image/jpeg'. I am trying following in my configuration:<br><br>  lidar_wms:<br>    type: wms<br>    req:<br>      url: <a href="http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0">http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0</a><br>      layers: lidar_hs<br>      transparent: true<br>    supported_srs: ['EPSG:26915']<br>    supported_formats: ['JPG']<br>    coverage:<br>      bbox: [-96.8, 39, -90, 45.1]<br>      bbox_srs: 'EPSG:4326'<br><br>globals:<br>  image:<br>    formats:<br>      JPG:<br>        format: image/jpeg<br><br><br></div>However I am still receiving error response from the server - "Unsupported format image/jpg. Try JPG instead." So it looks like even when specifying custom format xxx, Mapproxy sends request as image/xxx. But this source will only accept exact 'JPG' requests.<br><br></div><div>What can I do to make it work?<br></div><div><br></div>Example of successful request:<br><a href="http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=lidar_hs&FORMAT=JPG&HEIGHT=256&WIDTH=256&SRS=EPSG%3A26915&BBOX=524288,4587520,655360,4718592">http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=lidar_hs&FORMAT=JPG&HEIGHT=256&WIDTH=256&SRS=EPSG%3A26915&BBOX=524288,4587520,655360,4718592</a><br><div><br></div><div>Thank you!<br clear="all"></div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:rgb(0,40,168)">Anna Pestereva</span><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"> | <i><span>Application Developer & Cartographer</span></i></span></b><span style="line-height:115%;font-size:12pt;font-family:Arial,sans-serif"><br>


</span><b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Aerial Services, Inc.
(ASI) </span></b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:gray"><br>
</span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Office:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+13192770436">(319) 277-0436</a> | </span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Fax:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+18668004799">(866) 800-4799</a></span><span style="line-height:115%;font-size:11pt;font-family:Arial,sans-serif"><br>


</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray">6315 Chancellor Drive
| Cedar Falls, Iowa 50613 </span><span style="line-height:115%;font-size:11pt;font-family:Arial,sans-serif"><br>
</span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="mailto:apestereva@AerialServicesInc.com" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">APestereva@AerialServicesInc.com</span></a></span><span style="line-height:115%;font-size:10pt;font-family:Arial,sans-serif"> | </span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://www.linkedin.com/in/annapestereva" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">LinkedIn</span></a></span><span style="line-height:115%;font-size:10pt;font-family:Arial,sans-serif"><br>


</span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://www.aerialservicesinc.com/" target="_blank"><b><span style="line-height:115%;font-family:Arial,sans-serif">www.AerialServicesInc.com</span></b></a></span><b><u><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:blue"> </span></u></b><span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">| </span></span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://aerialservicesinc.com/photoblogmetry/" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">Photo{blog}metry</span></a></span><span><u><a href="http://www.aerialservicesinc.com/" target="_blank"></a></u></span></div></div>
</div></div></div></div></div>