<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Ian,<br>
<br>
To seed extra zoom levels from the WebMercator grid, you need to expand the grid. The Num_levels parameter defines additional zoom levels. You can access the grid later in the seed process.<br>
<br>
example:<br>
grids:<br>
   webmercator:<br>
     base: GLOBAL_WEBMERCATOR<br>
     origin: nw<br>
     num_levels: 20</p>
<p><br>
</p>
<p>Give it a try.<br>
<br>
Best regards</p>
<p><br>
</p>
<p>Rob<br>
</p>
<div class="moz-cite-prefix">Am 28.02.19 um 03:14 schrieb Ian Reese:<br>
</div>
<blockquote type="cite" cite="mid:CE106C36F836424AB340432214B378BA2F3B6EDC@prdassexch01.ad.linz.govt.nz">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
<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 size="2" face="Verdana" color="Black"><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 <a class="moz-txt-link-abbreviated" href="mailto:info@linz.govt.nz">
info@linz.govt.nz</a>) 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><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapProxy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapproxy">https://lists.osgeo.org/mailman/listinfo/mapproxy</a></pre>
</blockquote>
</body>
</html>