[MapProxy] ZeroDivisionError in mapproxy-seed
Bjoern Platzen
bjoern.platzen at almoconsult.de
Wed Mar 16 09:31:10 EDT 2011
Hello Oliver,
thanks for your reply.
I changed the definition for the grid, so that it uses EPSG:31466. Now
the meter-based min_res and max_res should fit.
New Grids-definition:
grids:
global_geodetic_sqrt2:
srs: 'EPSG:31466'
res_factor: 'sqrt2'
min_res: 6000000
max_res: 2000
bbox:
[2064052.224579244,4915664.3518403955,4181319.125883109,6140458.009400783]
bbox_srs: 'EPSG:31466'
But I still get the ZeroDivisionError:
(venv)administrator at customer04:/opt/mapproxy/almomapproxy$ mapproxy-seed
-f etc/mapproxy.yaml --seed myseed1 -n -s etc/seed.yaml
========== Seeding tasks ==========
Start seeding process (1 task)
myseed1:
Seeding cache 'osm_cache' with grid 'global_geodetic_sqrt2'
(EPSG:31466)
Limited to: (-0.85269, 42.51584, 31.09580, 55.38334)
Levels: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24]
Overwriting: tiles older than 2011-12-31 12:35:00
Traceback (most recent call last):ZeroDivisionError:
File "/opt/mapproxy/venv/bin/mapproxy-seed", line 8, in <module>
load_entry_point('MapProxy==1.0.0', 'console_scripts',
'mapproxy-seed')()
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/seed/script.py",
line 176, in main
return SeedScript()()
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/seed/script.py",
line 112, in __call__
skip_geoms_for_last_levels=options.geom_levels)
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/seed/seeder.py",
line 267, in seed
tile_walker.walk()
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/seed/seeder.py",
line 141, in walkZeroDivisionError:
self._walk(bbox, self.task.levels)
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/seed/seeder.py",
line 152, in _walk
bbox_, tiles, subtiles =
self.grid.get_affected_level_tiles(cur_bbox, current_level)
File
"/opt/mapproxy/venv/lib/python2.6/site-packages/mapproxy/grid.py", line
852, in get_affected_level_tiles
x0 = x0//meta_size[0] * meta_size[0]
ZeroDivisionError: integer division or modulo by zero
Any other ideas, what could be wrong with my configuration?
Thanks in advance,
Bjoern.
Oliver Tonnhofer schrieb:
> On 16.03.2011, at 10:32, Bjoern Platzen wrote:
>> grids:
>> global_geodetic_sqrt2:
>> base: GLOBAL_GEODETIC
>> res_factor: 'sqrt2'
>> min_res: 6000000
>> max_res: 2000
>> bbox: [2064052.224579244,4915664.3518403955,4181319.125883109,6140458.009400783]
>> bbox_srs: 'EPSG:31466'
>
>
>
> GLOBAL_GEODETIC uses EPSG:4326, but your min_res and max_res looks like meters and not degrees.
>
> Regards,
> Oliver
>
--
Almo Consult GmbH
Weiern 171
D-52078 Aachen
tel. +49/241/90075-226
fax +49/241/90075-20
mail bjoern.platzen at almoconsult.de
www.almo-ac.de
www.almoconsult.de
Registergericht: Aachen
Handelsregisternummer: HRB 13621
Geschäftsführung: Dipl.-Math. Nicole Kirschfink
More information about the MapProxy
mailing list