<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi MapProxy,</div>
<div><br>
</div>
<div>I'm using:<br>
</div>
<div><br>
</div>
<div>mapproxy-util --version<br>
MapProxy 1.11.0</div>
<div>Ubuntu 16.04</div>
<div><br>
</div>
<div>When attempting a dry run using maproxy util. <br>
</div>
<div><br>
</div>
<div>time mapproxy-seed --dry-run -f  ~/maptiles.test.yml -s ~/seeds.test.yml --progress-file .mapproxy_seed_pgress</div>
<div><br>
</div>
<div>I am hoping to get a rough count of tiles produced for Zoom 20 in GLOBAL_WEBMERCATOR.</div>
<div><br>
</div>
<div>MAPTILES GRID CONFIG:</div>
<div><br>
</div>
<div>grids:<br>
  GLOBAL_WEBMERCATOR:<br>
    srs: EPSG:3857<br>
    origin: nw<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>SEED CONFIG:<br>
</div>
<div><br>
</div>
<div>  test_main:<br>
    caches: [cache_web_mercator_testing]<br>
    grids: [GLOBAL_WEBMERCATOR]<br>
    coverages: [nz_mainland]<br>
    levels: [20]</div>
<div><br>
</div>
<div>All dry runs work fine until zoom 20 and above.  At Zoom 20 I get an error: <br>
</div>
<div><br>
</div>
<div>========== Seeding tasks ==========<br>
Start seeding process (1 task)<br>
  test_main:<br>
    Seeding cache 'cache_web_mercator_testing' with grid 'GLOBAL_WEBMERCATOR' in EPSG:3857<br>
    Limited to coverage in: 165.42907, -47.85948, 179.37452, -33.43041 (EPSG:4326)<br>
    Levels: []<br>
    Overwriting: no tiles<br>
Traceback (most recent call last):<br>
  File "/usr/local/bin/mapproxy-seed", line 11, in <module><br>
    sys.exit(main())<br>
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 361, in main<br>
    return SeedScript()()<br>
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 246, in __call__<br>
    skip_geoms_for_last_levels=options.geom_levels)<br>
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 495, in seed<br>
    seed_progress=seed_progress)<br>
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 514, in seed_task<br>
    seed_progress=seed_progress)<br>
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 290, in __init__<br>
    self.report_till_level = task.levels[num_seed_levels-1]<br>
IndexError: list index out of range<br>
</div>
<div><br>
</div>
<div>If I hard code the resolutions to the GLOBAL_MERCATOR grid config:</div>
<div><br>
</div>
<div>grids:<br>
  GLOBAL_WEBMERCATOR:<br>
    srs: EPSG:3857<br>
    origin: nw</div>
<div>    res: [156543.03, 78271.52, 39135.76, 19567.88, 9783.94, 4891.97, 2445.98, 1222.99, 611.50, 305.75, 152.87, 76.44, 38.22, 19.11, 9.55, 4.78, 2.39, 1.19, 0.60, 0.30, 0.15, 0.07]</div>
<div><br>
</div>
<div>The error goes away, however I get vastly different tile counts.</div>
<div><br>
</div>
<div>I have come across this error for years now.  I am writing to ask if there is a hard limit on GLOBAL_WEBMERCATOR or if this is a bug in MapProxy?  I really need to be able to seed to zoom 20.</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Ian<br>
</div>
</div>
<br>
<hr>
<font face="Verdana" color="Black" size="2"><br>
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please
 notify us immediately (Phone 0800 665 463 or info@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.<br>
</font>
</body>
</html>