globals:
  cache:
    base_dir: cache_data/
    meta_size: [1, 1]
    meta_buffer: 0
  image:
    paletted: True

services:
  tms:
  kml:
  wms:
    md:
      title: MapProxy test fixture
      abstract: This is MapProxy.
      online_resource: http://mapproxy.org/
      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.
  wmts:
    restful: true
    kvp: true

layers:
  - name: wms_legend
    title: Layer with legendgraphic support
    sources: [legend_cache]
  - name: wms_mult_sources
    title: Layer with multiple sources
    sources: [legend_cache, legend_cache_2]
  - name: wms_no_legend
    title: Layer without legendgraphic support
    sources: [wms_cache]
  - name: wms_source_static_url
    title: Layer with a static LegendURL
    sources: [legendurl_static]
  - name: wms_layer_static_url
    title: Layer with a static LegendURL
    legendurl: http://localhost:42423/staticlegend_layer.png
    sources: [legendurl_static_2]
  - name: wmts_layer_legendurl
    title: WMTS Layer with a static LegendURL
    legendurl: http://localhost:42423/staticlegend_layer.png
    sources: [tile_cache]
  - name: wmts_layer_no_legendurl
    title: WMTS Layer without a static LegendURL
    sources: [tile_cache]

sources:
  legend_cache:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      version: '1.1.1'
      legendgraphic: True
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  legend_cache_2:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      version: '1.1.1'
      legendgraphic: True
    req:
      url: http://localhost:42423/service
      layers: spam
  legendurl_static:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      version: '1.1.1'
      legendurl: http://localhost:42423/staticlegend_source.png
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  legendurl_static_2:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      version: '1.1.1'
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  wms_cache:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    wms_opts:
      version: '1.1.1'
    req:
      url: http://localhost:42423/service
      layers: foo

caches:
  tile_cache:
    cache:
      type: file
    grids: [GLOBAL_WEBMERCATOR]
    sources: []
