[MapProxy] Mapproxy-seed

Wolff, Stefan - LIST Stefan.Wolff at list.smwa.sachsen.de
Thu Oct 28 04:35:12 EDT 2010


Dear Mailing List,

I am using Mapproxy 0.9.0 and Mapserver on the same machine. Everything is running fine except the mapproxy-seed tool. 
Here is my seed-yaml:
--------------------------------------------------
views:
  sachsen:
  bbox: [4593747, 5644933, 4634341, 5675067]
        bbox_srs: EPSG:31468
        srs: ['EPSG:31468']

seeds:
  Luftbilder_cache:
      views: ['sachsen']
      remove_before:
          days: 30
-----------------------------------------

and the main parts of my mapproxy.yaml

-----------------------------------------
layers:
  Luftbilder:
    title: MapProxyLISt
    sources: [Luftbilder_cache]

caches:
  Luftbilder_cache:
    grids: [Luftbilder_grid]
    request_format: image/png
    image:
        resampling_method: nearest
    format: image/jpeg
    sources: [Luftbilder_wms]

sources:
  Luftbilder_wms:
    type: wms
    req:
      url: http://172.24.52.30/cgi-bin/mapserv?map=/var/www/sachsen.map&REQUEST=GetCapabilities&$
      layers: Sachsen_1,Sachsen_2,Sachsen_3,Sachsen_4,Sachsen_5,Sachsen_6
      transparent: true
      supported_srs: ['EPSG:31468']

grids:
  Luftbilder_grid:
    res_factor: 'sqrt2'
    srs: 'EPSG:31468'
    bbox: [ 4593747, 5644933, 4634341, 5675067 ]
    bbox_srs: 'EPSG:31468'
    tile_size: [256, 256]
--------------------------------------------------------

If I call  mapproxy-seed  -f etc/mapproxy.yaml -c 4 etc/seed.yaml I get the following error:

--------------------------------------------------------------------------------------------------------
No handlers could be found for logger "mapproxy.config.loader"
Traceback (most recent call last):
  File "/home/venv/mapproxy/bin/mapproxy-seed", line 9, in <module>
    load_entry_point('MapProxy==0.9.0', 'console_scripts', 'mapproxy-seed')()
  File "/home/venv/mapproxy/lib/python2.6/site-packages/mapproxy/seed/script.py", line 58, in main
    skip_geoms_for_last_levels=options.geom_levels)
  File "/home/venv/mapproxy/lib/python2.6/site-packages/mapproxy/seed/__init__.py", line 388, in seed_from_yaml_conf
    assert len(level) == 2
TypeError: object of type 'NoneType' has no len()
---------------------------------------------------------------------------------------------------------

If I rename Luftbilder_cache to some other name (or is there any rule for the seed name?) in seed.yaml i get another error:

---------------------------------------------------------------------------------------------------------
No handlers could be found for logger "mapproxy.config.loader"
Traceback (most recent call last):
  File "/home/venv/mapproxy/bin/mapproxy-seed", line 9, in <module>
    load_entry_point('MapProxy==0.9.0', 'console_scripts', 'mapproxy-seed')()
  File "/home/venv/mapproxy/lib/python2.6/site-packages/mapproxy/seed/script.py", line 58, in main
    skip_geoms_for_last_levels=options.geom_levels)
  File "/home/venv/mapproxy/lib/python2.6/site-packages/mapproxy/seed/__init__.py", line 357, in seed_from_yaml_conf
    caches = dict((grid.srs, tile_mgr) for grid, tile_mgr in conf.caches[layer].caches(conf))
KeyError: 'Luftbilder'
-----------------------------------------------------------------------------------------------------------

Can you please help me fixing my seed error ?
regards,
stefan wolff







More information about the MapProxy mailing list