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.

layers:
 -  name: res
    title: Cache Layer with min/max res
    sources: [res_cache]
 -  name: scale
    title: Cache Layer with min/max scale
    sources: [scale_cache]
 -  name: scale2
    title: Cache Layer with min/max scale
    min_scale: 1000
    max_scale: 10000
    sources: [scale_cache]

caches:
  res_cache:
    format: image/jpeg
    grids: [GLOBAL_MERCATOR, GLOBAL_GEODETIC]
    sources: [wms_res]
  scale_cache:
    format: image/jpeg
    grids: [GLOBAL_MERCATOR]
    sources: [wms_scale]

sources:
  wms_res:
    type: wms
    supported_srs: ['EPSG:900913', 'EPSG:4326']
    min_res: 10000
    max_res: 10
    req:
      url: http://localhost:42423/service
      layers: reslayer
  wms_scale:
      type: wms
      supported_srs: ['EPSG:900913', 'EPSG:4326']
      max_scale: 1000000
      min_scale: 10000
      req:
        url: http://localhost:42423/service
        layers: scalelayer
