[MapProxy] Layer merging problem

deduikertjes deduikertjes at xs4all.nl
Tue Mar 21 08:15:35 PDT 2017


Travis,

Thanks. I tried. Mapproxy reports:

mapproxy.config - WARNING - unknown 'opacity' in globals.image.formats.my_format

Seems logical as opacity is not mentioned in the docs as an option for 
an image format
On 21-03-17 14:50, Travis Kirstine wrote:
> I added a new global my_format with the opacity defined and used it 
> for the caches - does that work?
>
> On 21 March 2017 at 07:03, deduikertjes <deduikertjes at xs4all.nl 
> <mailto:deduikertjes at xs4all.nl>> wrote:
>
>     Layer merging problem
>
>     Hi List,
>
>     When (vertically) merging layers (mapproxy 1.9) results are not as
>     expected.
>
>     Merging two layers which have fully transparent areas show only
>     the topmost layer. The bottom layer is not shown as should (not at
>     all).
>     If the top layer has no fully transparent areas but is completely
>     opaque and opacity is set to eg 0.8 the bottom layer is shown as
>     should.
>
>     Did I make a config error or did I run into a bug?
>
>     Any help greatly appreciated, MArco
>
>     An excerpt from my config:
>
>     services:
>       tms:
>         # needs no arguments
>       wms:
>         srs: ['EPSG:28992']
>         image_formats: ['image/png', 'png']
>
>     globals:
>       cache:
>         minimize_meta_requests: true
>         meta_size: [1, 1]
>         meta_buffer: 0
>
>       image:
>         paletted: false
>         formats:
>           image/png:
>             mode: RGBA
>             transparent: true
>     *my_format:
>     *
>     *format: image/png:
>             mode: RGBA
>             transparent: true*
>
> *          opacity: 0.8*
>
>     sources:
>       wms_source1:
>         type: wms
>         wms_opts:
>           featureinfo: true
>           legendgraphic: true
>         supported_srs: ['EPSG:28992']
>         req:
>           url: 'http://myservice.nl/geoserver/gwc/service/wms
>     <http://myservice.nl/geoserver/gwc/service/wms>?'
>           layers: 'layer1'
>           transparent: true
>
>       wms_source2:
>         type: wms
>         wms_opts:
>           featureinfo: true
>           legendgraphic: true
>         supported_srs: ['EPSG:28992']
>         req:
>           url: 'http://myservice.nl/geoserver/gwc/service/wms
>     <http://myservice.nl/geoserver/gwc/service/wms>?'
>           layers: 'layer2'
>           transparent: true
>
>     caches:
>       _source1:
>          sources: [wms_source1]
>          link_single_color_images: true
>          disable_storage: true
>     *format: my_format*
>
>       _source2:
>          sources: [wms_source2]
>          link_single_color_images: true
>          disable_storage: true
>     *format: my_format*
>
>     layers:
>
>       - name: 'layer1'
>         sources: [_source1]
>         title: 'layer 1'
>
>
>       - name: 'layer2'
>         sources: [_source2]
>         title: 'Layer 2'
>
>     _______________________________________________
>     MapProxy mailing list
>     MapProxy at lists.osgeo.org <mailto:MapProxy at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/mapproxy
>     <https://lists.osgeo.org/mailman/listinfo/mapproxy>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20170321/3464b539/attachment.html>


More information about the MapProxy mailing list