<div dir="ltr"><div class="" lang="x-unicode">




<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">

 I have problems using mapproxy with QGIS-server via openlayers 
(mapproxy-1.6.0, qgis-server 2, python 2.7.3, PIL 1.1.7 and pillow 2.2.1
 for test, openlayers-2.13.1 on ubuntu 12.10).
<br>
</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


I have a layer in which i defined the background of the polygon with transparency.</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


When I asked directly qgis-server via openlayers, I get the png wanted 
(png background is entirely transparent and the transparency of the 
background is what i need).</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


When I pass through maproxy, the image background is transparent but not
 the background of the polygons (the setting of the mapproxy may be ok 
because I get a transparent png image). What's weird is when I set the 
background of a polygon with less than 50%
 transparency in QGIS, through mapproxy the background of the polygon is
 completely opaque and when I put a transparency equal to or greater 
than 50%, the background of polygons is completely transparent.<br>
</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


Sample configuration:<br>
</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


services:<br>
  demo:<br>
  wms:<br>
    srs: ['EPSG:4326', 'EPSG:32620']<br>
    bbox_srs: ['EPSG:32620']<br>
    image_formats: ['image/jpeg', 'image/png', 'image/gif', 'image/GeoTIFF', 'image/tiff']<br>
</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


sources:<br>
  communeswms:<br>
    type: wms<br>
    req:<br>
      url: <a class="" href="http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?map=/home/data/web/libraries/xxxxx/mc2gua.qgs">
http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?map=/home/data/web/libraries/xxxxx/mc2gua.qgs</a><br>
      layers: communes<br>
      transparent: true</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


layers:<br>
  - name: communes<br>
    title: communes<br>
    sources: [communeswms]<br>
</p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:18px;background-color:rgba(248,248,248,0.6)">


grids:<br>
  guadeloupe:<br>
    srs: 'EPSG:32620'<br>
    bbox: [600000,1700000,750000,1850000]<br>
</p>



</div></div>