[MapProxy] Multi-layer transparency problem

Oliver Tonnhofer tonnhofer at omniscale.de
Fri Jan 13 08:47:10 EST 2012


I think these are issues/limitations of the Python Image Library when overlaying (paste) multiple layers with alpha channels. PIL can't do real alpha compositing. The only solution to this, without writing any code as a workaround, is to create another cache that already contains both sources.

Regards,
Oliver

On 13.01.2012, at 14:22, Dejan Gambin wrote:

> In mapproxy.yaml? No :-(
> 
> regards, dejan
> 
> On 13. sij. 2012., at 14:15, Oliver Tonnhofer wrote:
> 
>> 
>> On 13.01.2012, at 12:33, Dejan Gambin wrote:
>>> Since I gave you only mapproxy requests to MapServer, here is something better, and you can try it yourself so no attachments needed :-)
>>> 
>>> My client application sends request like this to Mappproxy service:
>>> 
>>> http://www.coin.hr:54322/service?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=namjena,uza_namjena&SRS=EPSG:900913&BBOX=1533632.5353003,5620873.3111963,1536078.5202051,5623319.2961011&WIDTH=256&HEIGHT=256
>>> 
>>> The same request directly to MapServer WMS is this:
>>> 
>>> http://www.coin.hr/cgi-bin/mywms6?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=namjena,uza_namjena&SRS=EPSG:900913&BBOX=1533632.5353003,5620873.3111963,1536078.5202051,5623319.2961011&WIDTH=256&HEIGHT=256
>>> 
>>> You can see the difference. I hope this helps a little more
>> 
>> 
>> Do you use the opacity option somewhere?
>> 
>> 
>> Regards,
>> Oliver
>> 
>> -- 
>> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
>> http://mapproxy.org | https://bitbucket.org/olt | @oltonn
>> 
>> 
>> 
>> 
> 
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy

Mit freundlichen Grüßen,
Oliver Tonnhofer

-- 
Oliver Tonnhofer <tonnhofer at omniscale.de>

Omniscale GmbH & Co. KG
Nadorster Straße 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9), Web: http://omniscale.de
Amtsgericht Oldenburg, HRA 202656

Komplementärin: Omniscale Beteiligungs GmbH, Sitz: Oldenburg (Oldb)
Amtsgericht Oldenburg, HRB 205231, Geschäftsführer: Oliver Tonnhofer, Dominik Helle



More information about the MapProxy mailing list