[MapProxy] transparency projected/cached layers

Thorsten Hildebrand thorsten.hildebrand at gmx.net
Mon May 5 05:46:36 PDT 2014


Hi,

I have a problem with transparency in projected layers. Only a direct access (without cache/ without projection) keep the transparency. I use a WMS from Berlin "Karte von Berlin 1:5000 (K5)"

My workaround is to set "transparent_color" and "transparent_color_tolerance" (see comments in config). I have tested with Mapproxy 1.6.0 on Linux and Windows. Can you give me a hint to fix my config so I can use the origin transparency, please?


Sample WMS-image from server with transparency: http://fbinter.stadt-berlin.de/fb/wms/senstadt/k5?styles=&format=image%2Fpng&height=512&bbox=15798.1766833,23489.0564695,15985.4492364,23675.8691852&transparent=True&layers=0&service=WMS&width=513&request=GetMap&srs=EPSG%3A3068&version=1.1.1

Sample Mapproxy URL (cache, no transparency): http://localhost:8080/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=15741.14359397656880901,23447.16088805999970646,16150.58630272754999169,23623.10880490613999427&SRS=EPSG:3068&WIDTH=1238&HEIGHT=532&LAYERS=k5&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE

Sample Mapproxy URL (direct, transparency): http://localhost:8080/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=15741.14359397656880901,23447.16088805999970646,16150.58630272754999169,23623.10880490613999427&SRS=EPSG:3068&WIDTH=1238&HEIGHT=532&LAYERS=k5_direct&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE


Thank you and greetings from Berlin,
Thorsten




small working mapproxy.yaml:

services:
  demo:
  wms:
    srs: ['EPSG:3068', 'EPSG:4326', 'EPSG:3857']
    image_formats: ['image/png', 'image/jpeg']
    md:
      title: MapProxy WMS Proxy
      abstract: This is a minimal MapProxy example.

layers:
  - name: k5
    title: Berlin K5
    sources: [berlin_k5_cache]
  - name: k5_direct
    title: Berlin K5 direct
    sources: [berlin_k5_wms]

caches:
  berlin_k5_cache:
    grids: [webmercator]
    sources: [berlin_k5_wms]
    meta_size: [2, 2]
    meta_buffer: 0
    format: image/png
    link_single_color_images: true

sources:
  berlin_k5_wms:
    type: wms
    supported_srs: ['EPSG:3068']
    coverage:
      bbox: [13.079, 52.3284, 13.7701, 52.6877]
      srs: EPSG:4326
    req:
      url: http://fbinter.stadt-berlin.de/fb/wms/senstadt/k5?
      layers: '0'
      transparent: true
      format: image/png
    image:
      #transparent_color: '#ffffff'
      #transparent_color_tolerance: 20
      transparent: true
        
grids:
    webmercator:
        base: GLOBAL_WEBMERCATOR


More information about the MapProxy mailing list