globals:
  http:
    hide_error_details: false
  cache:
    base_dir: cache_data/
    meta_size: [1, 1]
    meta_buffer: 0
    tile_lock_dir: defaulttilelockdir

  srs:
    preferred_src_proj:
      'EPSG:25831': ['EPSG:25832', 'EPSG:3857']

  image:
    # resampling: 'bicubic'
    paletted: False
    formats:
      custom:
        format: image/jpeg
      png8:
        format: 'image/png; mode=8bit'
        colors: 256
services:
  tms:
  kml:
  wmts:
  wms:
    image_formats: ['image/png', 'image/jpeg', 'png8', 'image/tiff']
    srs: ['EPSG:4326', 'CRS:84', 'EPSG:900913', 'EPSG:3857', 'EPSG:31466', 'EPSG:31467', 'EPSG:31468', 'EPSG:25831', 'EPSG:25832', 'EPSG:25833']
    bbox_srs:
        - 'EPSG:3857'
        - bbox: [-180, -70, 180, 90]
          srs: 'EPSG:4326'
    md:
      title: MapProxy test fixture ☃
      abstract: This is MapProxy.
      online_resource: http://mapproxy.org/
      keyword_list:
       - vocabulary: Name of the vocabulary
         keywords:   [keyword1, keyword2]
       - vocabulary: Name of another vocabulary
         keywords:   [keyword1, keyword2]
       - keywords:   ["keywords without vocabulary"]
      contact:
        person: Bob Mustermann
        position: Technical Director
        organisation: Acme
        address: Fakestreet 123
        city: Fakecity
        postcode: 12345
        country: Germany
        phone: 0123456789
        fax: 0123456789
        email: info@example.org
      access_constraints:
        Here be dragons.

layers:
  - name: direct
    title: Direct Layer
    sources: [direct]
  - name: direct_fwd_params
    title: Direct Forward Params Layer
    sources: [direct_fwd_params]
  - name: wms_cache
    title: WMS Cache Layer with direct access from level 8
    sources: [wms_cache]
    md:
      abstract: Some abstract
      keyword_list:
       - vocabulary: Name of the vocabulary
         keywords:   [keyword1, keyword2]
       - vocabulary: Name of another vocabulary
         keywords:   [keyword1, keyword2]
       - keywords:   ["keywords without vocabulary"]
      attribution:
       title: My attribution title
       url:   http://some.url/
       logo:
         url:    http://some.url/logo.jpg
         width:  100
         height: 100
         format: image/jpeg
      identifier:
       - url:    http://some.url/
         name:   HKU1234
         value:  Some value
      metadata:
       - url:    http://some.url/
         type:   INSPIRE
         format: application/xml
       - url:    http://some.url/
         type:   ISO19115:2003
         format: application/xml
      data:
       - url:    http://some.url/datasets/test.shp
         format: application/octet-stream
       - url:    http://some.url/datasets/test.gml
         format: text/xml; subtype=gml/3.2.1
      feature_list:
       - url:    http://some.url/datasets/test.pdf
         format: application/pdf

  - name: wms_cache_transparent
    title: WMS Cache Layer with transparent data
    sources: [wms_cache_transparent]
  - name: wms_cache_link_single
    title: WMS Cache Layer (link single)
    sources: [wms_cache_link_single]
  - name: wms_cache_100
    title: WMS Cache Layer
    sources: [wms_cache_100]
  - name: wms_cache_130
    title: WMS Cache Layer
    sources: [wms_cache_130]
  - name: wms_cache_multi
    title: WMS Cache Multi Layer
    sources: [wms_cache_multi]
  - name: tms_cache
    title: TMS Cache Layer
    sources: [tms_cache]
  - name: tms_fi_cache
    title: TMS Cache Layer + FI
    # layer should be avail for cache services
    sources: [tms_cache, wms_fi_only]
  - name: wms_merge
    title: WMS Cache + Direct Layer
    sources: [direct, wms_cache]
  - name: wms_cache_110
    title: WMS Cache Layer
    sources: [wms_cache_110]
  - name: watermark_cache
    title: TMS Cache + watermark
    sources: [watermark_cache]
  - name: wms_managed_cookies_cache
    title: WMS with cookies management
    sources: [wms_managed_cookies]
  - name: wms_fi_ql_cache
    title: WMS with query_layers source
    sources: [wms_fi_ql]  

caches:
  wms_cache:
    format: image/jpeg
    use_direct_from_level: 8
    sources: [wms_cache]
    cache:
        type: file
        tile_lock_dir: wmscachetilelockdir
  wms_cache_transparent:
    format: png8a
    sources: [wms_cache_transparent]
  wms_cache_link_single:
    format: png24
    request_format: image/jpeg
    link_single_color_images: True
    sources: [wms_cache]
  wms_cache_100:
    format: image/jpeg
    request_format: image/tiff
    sources: [wms_cache_100]
  wms_cache_130:
    format: image/jpeg
    sources: [wms_cache_130]
  wms_cache_multi:
    format: custom
    grids: [GLOBAL_GEODETIC, GLOBAL_MERCATOR]
    sources: [wms_cache_130]
  tms_cache:
    sources: [tms_cache]
  wms_cache_110:
    format: image/jpeg
    sources: [wms_cache_110]
  watermark_cache:
    sources: [tms_cache]
    disable_storage: true
    watermark:
      text: '@ Omniscale'
  wms_managed_cookies_cache:
    sources: [wms_managed_cookies]
  wms_fi_ql_cache:
    sources: [wms_fi_ql]

sources:
  direct:
    type: wms
    req:
      url: http://localhost:42423/service
      layers: bar
    wms_opts:
      featureinfo: True
    coverage:
      bbox: [-180, -80, 170, 80]
      srs: 'EPSG:4326'
  direct_fwd_params:
    type: wms
    forward_req_params: ['time']
    req:
      url: http://localhost:42423/service
      layers: bar
    coverage:
      # coverage in projection not in wms.srs,
      # should not be advertised in capabilities #288
      bbox: [-180, -80, 170, 80]
      srs: 'EPSG:4258'
  wms_cache:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  wms_cache_transparent:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
      transparent: true
  wms_cache_100:
    type: wms
    wms_opts:
      version: '1.0.0'
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  wms_cache_130:
    type: wms
    min_res: 250000000
    max_res: 1
    wms_opts:
      version: '1.3.0'
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  tms_cache:
    type: tile
    url: http://localhost:42423/tiles/%(tc_path)s.png
  wms_cache_110:
    type: wms
    wms_opts:
      version: '1.1.0'
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  wms_fi_only:
    type: wms
    wms_opts:
      featureinfo: True
      map: False
    req:
      url: http://localhost:42423/service
      layers: fi
    coverage:
      bbox: [-180,-90,170,80]
      srs: 'EPSG:4326'
  wms_managed_cookies:
    type: wms
    wms_opts:
      featureinfo: True
    req:
      url: http://localhost:42423/service
      layers: layer1
    http:
      manage_cookies: True
  wms_fi_ql:
    type: wms
    wms_opts:
      featureinfo: True
      query_layers: foo
    req:
      url: http://localhost:42423/service
      layers: foo,bar
