SV: [MapProxy] Seeding question

Johan Sandberg johs at kth.se
Wed Mar 30 09:25:42 EDT 2011


Hello again

I basically want to fetch all the tiles in the 0  level/ resolution

This is how the seed.yaml file look like. I guess I dont have to add any covarage because in the mapproxy.yaml file the grid tab is defing the bbox. Maybe I configure the mapproxy.yaml file in a bad way?

seeds:
  myseed1:
    caches: [osm_cache]
    grids: [mygrid]
    levels:[0]

I got an error when executing this command:

venv/mapproxy/mymapproxy/etc$ mapproxy-seed -f mapproxy.yaml seed.yaml

traceback (most recent call last):
  File "/usr/local/bin/mapproxy-seed", line 9, in <module>
    load_entry_point('MapProxy==1.0.1', 'console_scripts', 'mapproxy-seed')()
  File "/usr/local/lib/python2.6/dist-packages/MapProxy-1.0.1-py2.6.egg/mapproxy/seed/script.py", line 176, in main
    return SeedScript()()
  File "/usr/local/lib/python2.6/dist-packages/MapProxy-1.0.1-py2.6.egg/mapproxy/seed/script.py", line 88, in __call__
    seed_conf = load_seed_tasks_conf(options.seed_file, mapproxy_conf)
  File "/usr/local/lib/python2.6/dist-packages/MapProxy-1.0.1-py2.6.egg/mapproxy/seed/config.py", line 46, in load_seed_tasks_conf
    conf = yaml.load(f)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/__init__.py", line 58, in load
    return loader.get_single_data()
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/constructor.py", line 42, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/parser.py", line 93, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/parser.py", line 423, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/scanner.py", line 115, in check_token
    while self.need_more_tokens():
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/scanner.py", line 149, in need_more_tokens
    self.stale_possible_simple_keys()
  File "/usr/local/lib/python2.6/dist-packages/PyYAML-3.09-py2.6-linux-i686.egg/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not found expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "seed.yaml", line 5, column 5
could not found expected ':'
  in "seed.yaml", line 7, column 1

________________________________________
Från: Oliver Tonnhofer [olt at omniscale.de]
Skickat: den 30 mars 2011 14:25
Till: Johan Sandberg
Kopia: mapproxy at lists.osgeo.org
Ämne: Re: [MapProxy] Seeding question

On 30.03.2011, at 14:06, Johan Sandberg wrote:

> Hello!
>
> Im not quit sure about the seeding tool.
> [...]
>
> 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?

Please read http://mapproxy.org/docs/nightly/seed.html
You are using the old configuration format that does only support level ranges (from 0 too level 0 -> levels: [0, 0]). The new format supports a list of levels (e.g. levels: [0, 4, 5, 6])


Regards,
Oliver

--
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn






More information about the MapProxy mailing list