Hi everybody,<br><br>I'm using Mapproxy as a caching system between Openlayers and Mapserver and I'm having troubles dealing with 24-bit png's.<br>It seems that mapproxy doesn't like the "image/png; mode=24bit" format string, that is required by mapserver to generate 24bit png's.<br>
<br><br>In details, in Openlayers I've got a wms layer configured like this:<br><br>//layer WMS<br> wmsLayer = new OpenLayers.Layer.WMS(<br> "name",<br> //"http://"+serverIp+"/cgi-bin/mapserv?",<br>
"<a href="http://localhost:8080/service">http://localhost:8080/service</a>?",<br> {<br> transparent: 'TRUE',<br> layers: myWMSlyr,<br> format: "image/png; mode=24bit",<br>
projection: new OpenLayers.Projection("EPSG:900913"),<br> ratio: 1<br> },<br>...<br>but Mapproxy is throwing an exception related to "image/png; mode=24bit" not being in a correct format.<br>
Here's the stack trace:<br>Traceback (most recent call last):<br> File "/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/wsgiapp.py", line 159, in __call__<br> resp = self.handlers[handler_name].handle(req)<br>
File "/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/ows.py", line 38, in handle<br> return self.services[service].handle(req)<br> File "/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/base.py", line 30, in handle<br>
return handler(parsed_req)<br> File "/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/wms.py", line 115, in map<br> img_opts = self.image_formats[params.format_mime_type].copy()<br>KeyError: u'image/png; mode=24bit'<br>
<br>I need to pass the "format=image/png; mode=24bit" to mapserver, is there some settings I should make to mapproxy and/or change the request in Openlayers to achieve that?<br><br>Any help appreciated<br>Andrea<br>