[MapProxy] Seeding question

Johan Sandberg johs at kth.se
Wed Mar 30 08:06:21 EDT 2011


Hello!

Im not quit sure about the seeding tool.

Im using 1.0.1 version of mapproxy

This is my mapproxy.yaml where I only have two levels defined.

services:
  wms:
    srs: ['EPSG:3011']
    image_formats: ['image/jpeg', 'image/png']
layers:
  osm:
    title: Omniscale OSM WMS - osm.omniscale.net
    sources: [osm_cache]
  # osm_full_example:
  #   title: Omniscale OSM WMS - osm.omniscale.net
  #   sources: [osm_cache_full_example]
    
caches:
  osm_cache:
    
    sources: [osm_wms]
    grids: [mygrid]
    minimize_meta_requests: true
  # osm_cache_full_example:
  #   meta_buffer: 20
    meta_size: [3, 3]
    format: image/png


sources:
  osm_wms:
    type: wms
    req:
      url: http://localhost:8080/geoserver/wms?
      layers: Jarfalla_tatort
      
grids:
  mygrid:
    
    res: [0.10899353,0.054496765]

  # grid_full_example:
    tile_size: [256, 256]
    srs: 'EPSG:3011'
    bbox: [134767,6585116,144281,6599402]
    bbox_srs: 'EPSG:3011'



globals:
  cache:
  #   # where to store the cached images
    base_dir: '../var/cache_data'
  #   # where to store lockfiles
    lock_dir: '../tmp/tile_locks'
  #   # request x*y tiles in one step
    meta_size: [3, 3]
 


  # image/transformation options
  image:
      resampling_method: nearest

I want to seed the only the first level but im not sure about the configuration of this file

views:
  
  osm_cache:
    bbox: [134767,6585116,144281,6599402]
    bbox_srs: 'EPSG:3011'
    levels: [0]
    srs: ['EPSG:3011']

seeds:
  osm:
    views: ['osm_cache']
    remove_before:
      time: '2012-02-20T16:00:00'
  
When I execute this its from  ...mymapproxy/etc... mapproxy-seed -f mapproxy.yaml seed.yaml
Im a right?

/ Johan





More information about the MapProxy mailing list