<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Michael,<br>
      <br>
      I've tried both RGB and RGBA output modes on mapserver.<br>
      Result is the same, always opaque features when image opacity on
      the cache is not set, always partially transparent features when
      image opacity on the cache is set to eg 0.5<br>
      <br>
      MArco<br>
    </font><br>
    Op 7-1-2012 13:51, Michael Shishcu schreef:
    <blockquote
cite="mid:CAKbwmJBC4_H-u2C-xFQxD+mdE_fmYEv3MgSzm5AOpfCBuYkXeQ@mail.gmail.com"
      type="cite">Marco, in my previous email I mentioned your mapserver
      returns opaque images even if you request them with transparent
      set to true.<br>
      can you confirm that? and if so change tha format on your
      mapserver to RGBA.<br>
      <br>
      regards, michael<br>
      <div class="gmail_quote">On Sat, Jan 7, 2012 at 2:34 PM,
        DeDuikertjes <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:DeDuikertjes@xs4all.nl">DeDuikertjes@xs4all.nl</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> <font size="-1">Hi
              Michael, Oliver,<br>
              <br>
              I've tried all options.<br>
              It didn't matter.<br>
              All results became opaque.<br>
              <br>
              Then I added opacity: 0.4 to the definition of the CACHE.<br>
              Then the result is as expected. Nice and transparent.<br>
              <br>
              Image mode can be RGBA or P, paletted true or false,
              transparent true or false. All doesn't matter. If opacity
              is set on the cache the results are OK, otherwise not.<br>
              <br>
              Only when seeding mapproxy complains: </font><br>
            <pre>mapproxy.config - WARNING - unknown 'opacity' in caches._Bedrijventerrein.image

Also from doc's I understood that opacity should be set in source not cache.

Anyhow thank you all!

MArco
</pre>
            <br>
            Op 6-1-2012 19:29, Michael Shishcu schreef:
            <div>
              <div class="h5">
                <blockquote type="cite">Hi Marco<br>
                  <br>
                  Can you try adding <br>
                  &nbsp;&nbsp;&nbsp; image:<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mode: RGBA<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transparent: true<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; paletted: false<br>
                  <br>
                  to the cache (and source?) config. I can share my
                  current yaml file that is working a little bit later,
                  if you want.<br>
                  <br>
                  regards, michael<br>
                  <br>
                  <div class="gmail_quote">On Fri, Jan 6, 2012 at 7:38
                    PM, DeDuikertjes <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:DeDuikertjes@xs4all.nl"
                        target="_blank">DeDuikertjes@xs4all.nl</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> <font
                          size="-1">Oliver,<br>
                          <br>
                          Thank you. I did as you suggested<br>
                          <br>
                          I've added a layer to may config (see
                          attached).<br>
                          The result can be seen at: <br>
                          <a moz-do-not-send="true"
href="http://178.63.74.185/hosting/demo/show_source.html?layernames=testlufo,Bedrijventerrein&amp;test=true&amp;opacity=1&amp;url=http://test.tiles.md-kwadraat.nl/mp/service"
                            target="_blank">http://178.63.74.185/hosting/demo/show_source.html?layernames=testlufo,Bedrijventerrein&amp;test=true&amp;opacity=1&amp;url=http://test.tiles.md-kwadraat.nl/mp/service</a><br>
                          <br>
                          Still the layer defined with transparency 0.4
                          is fully opaque. Am&nbsp; miss understanding
                          something?<br>
                          <br>
                          Marco<br>
                          <br>
                          caches:<br>
                          &nbsp; _Bedrijventerrein:<br>
                          &nbsp;&nbsp;&nbsp; grids:<br>
                          &nbsp;&nbsp;&nbsp; - applas_grid<br>
                          &nbsp;&nbsp;&nbsp; link_single_color_images: true<br>
                          &nbsp;&nbsp;&nbsp; sources:<br>
                          &nbsp;&nbsp;&nbsp; - wms_Bedrijventerrein<br>
                          &nbsp; _testlufo:<br>
                          &nbsp;&nbsp;&nbsp; grids:<br>
                          &nbsp;&nbsp;&nbsp; - applas_grid<br>
                          &nbsp;&nbsp;&nbsp; link_single_color_images: true<br>
                          &nbsp;&nbsp;&nbsp; sources:<br>
                          &nbsp;&nbsp;&nbsp; - wms_testlufo<br>
                          globals:<br>
                          &nbsp; cache:<br>
                          &nbsp;&nbsp;&nbsp; base_dir:
                          /var/applas_user_data/test/cache/<br>
                          &nbsp;&nbsp;&nbsp; lock_dir:
                          /var/applas_user_data/test/cache/locks/<br>
                          &nbsp;&nbsp;&nbsp; meta_buffer: 255<br>
                          &nbsp;&nbsp;&nbsp; meta_size:<br>
                          &nbsp;&nbsp;&nbsp; - 3<br>
                          &nbsp;&nbsp;&nbsp; - 3<br>
                          &nbsp;&nbsp;&nbsp; minimize_meta_requests: true<br>
                          grids:<br>
                          &nbsp; applas_grid:<br>
                          &nbsp;&nbsp;&nbsp; bbox:<br>
                          &nbsp;&nbsp;&nbsp; - -285401.920000<br>
                          &nbsp;&nbsp;&nbsp; - 22598.080000<br>
                          &nbsp;&nbsp;&nbsp; - 595401.920000<br>
                          &nbsp;&nbsp;&nbsp; - 903401.920000<br>
                          &nbsp;&nbsp;&nbsp; res:<br>
                          &nbsp;&nbsp;&nbsp; - 3440.640000<br>
                          &nbsp;&nbsp;&nbsp; - 1720.320000<br>
                          &nbsp;&nbsp;&nbsp; - 860.160000<br>
                          &nbsp;&nbsp;&nbsp; - 430.080000<br>
                          &nbsp;&nbsp;&nbsp; - 215.040000<br>
                          &nbsp;&nbsp;&nbsp; - 107.520000<br>
                          &nbsp;&nbsp;&nbsp; - 53.760000<br>
                          &nbsp;&nbsp;&nbsp; - 26.880000<br>
                          &nbsp;&nbsp;&nbsp; - 13.440000<br>
                          &nbsp;&nbsp;&nbsp; - 6.720000<br>
                          &nbsp;&nbsp;&nbsp; - 3.360000<br>
                          &nbsp;&nbsp;&nbsp; - 1.680000<br>
                          &nbsp;&nbsp;&nbsp; - 0.840000<br>
                          &nbsp;&nbsp;&nbsp; - 0.420000<br>
                          &nbsp;&nbsp;&nbsp; - 0.210000<br>
                          &nbsp;&nbsp;&nbsp; srs: EPSG:28992<br>
                          &nbsp;&nbsp;&nbsp; tile_size:<br>
                          &nbsp;&nbsp;&nbsp; - 256<br>
                          &nbsp;&nbsp;&nbsp; - 256<br>
                          layers:<br>
                          - name: Bedrijventerrein<br>
                          &nbsp; sources:<br>
                          &nbsp; - _Bedrijventerrein<br>
                          &nbsp; title: Bedrijventerrein<br>
                          - name: testlufo<br>
                          &nbsp; sources:<br>
                          &nbsp; - _testlufo<br>
                          &nbsp; title: testlufo<br>
                          services:<br>
                          &nbsp; tms: ~<br>
                          &nbsp; wms:<br>
                          &nbsp;&nbsp;&nbsp; image_formats:<br>
                          &nbsp;&nbsp;&nbsp; - image/png<br>
                          &nbsp;&nbsp;&nbsp; - png<br>
                          &nbsp;&nbsp;&nbsp; md:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; abstract: test for transparency.<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_constraints: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; city: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; country: The Netherlands<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; email: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; organization: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; person: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phone: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; postcode: none<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fees: None<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; online_resource: <a
                            moz-do-not-send="true"
                            href="http://tiles.md-kwadraat.nl/"
                            target="_blank">http://tiles.md-kwadraat.nl/</a><br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: test for transparency.<br>
                          &nbsp;&nbsp;&nbsp; srs:<br>
                          &nbsp;&nbsp;&nbsp; - EPSG:28992<br>
                          sources:<br>
                          &nbsp; wms_Bedrijventerrein:<br>
                          &nbsp;&nbsp;&nbsp; image:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; opacity: 0.400000<br>
                          &nbsp;&nbsp;&nbsp; req:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: Bedrijventerrein<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transparent: true<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: <a moz-do-not-send="true"
href="http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map"
                            target="_blank">http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map</a><br>
                          &nbsp;&nbsp;&nbsp; supported_srs:<br>
                          &nbsp;&nbsp;&nbsp; - EPSG:28992<br>
                          &nbsp;&nbsp;&nbsp; type: wms<br>
                          &nbsp; wms_testlufo:<br>
                          &nbsp;&nbsp;&nbsp; concurrent_requests: 4<br>
                          &nbsp;&nbsp;&nbsp; image:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; opacity: 1.000000<br>
                          &nbsp;&nbsp;&nbsp; req:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: Lufo<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transparent: true<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: <a moz-do-not-send="true"
href="http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map"
                            target="_blank">http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map</a><br>
                          &nbsp;&nbsp;&nbsp; supported_srs:<br>
                          &nbsp;&nbsp;&nbsp; - EPSG:28992<br>
                          &nbsp;&nbsp;&nbsp; type: wms<br>
                          &nbsp;&nbsp;&nbsp; wms_opts:<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureinfo: true<br>
                          <br>
                          <br>
                          <br>
                          <br>
                          <br>
                        </font>Op 6-1-2012 14:29, Oliver Tonnhofer
                        schreef:
                        <blockquote type="cite">
                          <pre>Hi Marco,

On 06.01.2012, at 14:16, DeDuikertjes wrote:
</pre>
                          <blockquote type="cite">
                            <pre>Please help me with tracking down this problem.
Is there anything wrong with my config?
How can I track this problem. I really don't know where to start.
</pre>
                          </blockquote>
                          <pre>it does only work when you overlay multiple layers. So you should try to add another layer below your layer.

Regards,
Oliver

</pre>
                        </blockquote>
                      </div>
                      <br>
                      _______________________________________________<br>
                      MapProxy mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:MapProxy@lists.osgeo.org"
                        target="_blank">MapProxy@lists.osgeo.org</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.osgeo.org/mailman/listinfo/mapproxy"
                        target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>