globals:
  cache:
    base_dir: cache_data/
    meta_size: [1, 1]
    meta_buffer: 0
  image:
    paletted: False
    # resampling: 'bicubic'
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.

layers:
  - name: wms_cache
    title: WMS Cache Layer
    sources: [wms_cache]
  - name: tms_cache
    title: TMS Cache Layer
    sources: [tms_cache]
  - name: seed_only_cache
    title: Seed Only Layer
    sources: [seed_only_cache]

caches:
  wms_cache:
    format: image/jpeg
    grids: [GLOBAL_MERCATOR, GLOBAL_GEODETIC]
    sources: [wms_cache]
  tms_cache:
    format: image/jpeg
    grids: [GLOBAL_MERCATOR]
    sources: [tms_cache]
  seed_only_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [seed_only_source]

sources:
  wms_cache:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    coverage:
      bbox: [10, 15, 30, 31]
      bbox_srs: 'EPSG:4326'
    req:
      url: http://localhost:42423/service
      layers: foo,bar
  tms_cache:
    type: tile
    coverage:
      bbox: [12, 10, 35, 30]
      bbox_srs: 'EPSG:4326'
    url: http://localhost:42423/tms/1.0.0/foo/%(tms_path)s.jpeg
  seed_only_source:
    type: tile
    seed_only: true
    coverage:
      bbox: [14, 13, 24, 23]
      bbox_srs: 'EPSG:4326'
    url: http://localhost:42423/tms/1.0.0/foo/%(tms_path)s.jpeg
