globals:
  cache:
    base_dir: cache_data/
    meta_size: [1, 1]
    meta_buffer: 0
  image:
    paletted: False
    # resampling: 'bicubic'
services:
  tms:
  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: jpeg_cache_tiff_source
    title: JPEG cache with TIFF source
    sources: [jpeg_cache_tiff_source]
  - name: png_cache_all_source
    title: PNG cache with all source
    sources: [png_cache_all_source]
  - name: jpeg_cache_png_jpeg_source
    title: JPEG cache with png and jpeg source
    sources: [jpeg_cache_png_jpeg_source]

caches:
  jpeg_cache_tiff_source:
    format: image/jpeg
    use_direct_from_level: 2
    sources: [tiff_source]
  jpeg_cache_png_jpeg_source:
    format: image/jpeg
    use_direct_from_level: 2
    sources: [png_jpeg_source]
  png_cache_all_source:
    format: image/png
    use_direct_from_level: 2
    sources: [all_source]

sources:
  all_source:
    type: wms
    req:
      url: http://localhost:42423/service
      layers: allsource
  png_jpeg_source:
    type: wms
    supported_formats: ['image/png', 'image/jpeg']
    req:
      url: http://localhost:42423/service
      layers: pngjpegsource
  tiff_source:
    type: wms
    req:
      url: http://localhost:42423/service
      layers: tiffsource
      format: image/tiff
