Advertisement
xurxosanz

Simple MapProxy seed and conf

May 17th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.76 KB | None | 0 0
  1. # ----------------------------------------------------------------
  2. # MapProxy simple WMS caching configuration
  3. # ----------------------------------------------------------------
  4.  
  5. # ----------------------------------------------------------------
  6. # conf.yaml
  7. # ----------------------------------------------------------------
  8.  
  9. services:
  10.   demo:
  11.   kml:
  12.   tms:
  13.   wmts:
  14.   wms:
  15.     srs: ['EPSG:900913', 'EPSG:4258', 'EPSG:4326']
  16.     image_formats: ['image/jpeg', 'image/png']
  17.     md:
  18.       title: PNOA MapProxy
  19.       access_constraints:
  20.        None
  21.       fees: 'None'
  22.  
  23. layers:
  24.   - name: pnoa
  25.     title: PNOA
  26.     sources: [pnoa_cache]
  27.    
  28.  
  29. caches:
  30.   pnoa_cache:
  31.     grids: [grid_pnoa_geodetic]
  32.     sources: [pnoa_wms]
  33.     request_format: image/jpeg
  34.     link_single_color_images: true
  35.     meta_size: [2,2]
  36.     meta_buffer: 0
  37.  
  38. sources:
  39.   pnoa_wms:
  40.     type: wms
  41.     req:
  42.       url: http://www.idee.es/wms/PNOA/PNOA
  43.       layers: pnoa
  44.       format: 'image/jpeg'
  45.       transparent: false
  46.      
  47. grids:
  48.   grid_pnoa_geodetic:
  49.     base: GLOBAL_GEODETIC
  50.     srs: EPSG:4258
  51.     tile_size: [256,256]
  52.     bbox: [-180, -90, 180, 90]
  53.     num_levels: 20
  54.     min_res: 0.703125
  55.    
  56. globals:
  57.   cache:
  58.     base_dir: './cache_data'
  59.     lock_dir: './cache_data/locks'
  60.  
  61.   image:
  62.       resampling_method: nearest
  63.  
  64.   http:
  65.     client_timeout: 120
  66.  
  67.  
  68. # ----------------------------------------------------------------
  69. # seed.yaml
  70. # ----------------------------------------------------------------
  71.  
  72. seeds:
  73.   parc:
  74.     caches: [pnoa_cache]
  75.     grids: [grid_pnoa_geodetic]
  76.     coverages: [parc_agrari]
  77.     levels:
  78.       from: 10
  79.       to: 19
  80.  
  81. coverages:
  82.   parc_agrari:
  83.     bbox: [ 41.275484, 1.994362 , 41.353618 , 2.093925 ]
  84.     bbox_srs: "EPSG:4326"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement