[MapProxy] Global Mercator Zoom 20

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MapProxy] Global Mercator Zoom 20

Ian Reese
Hi MapProxy,

I'm using:

mapproxy-util --version
MapProxy 1.11.0
Ubuntu 16.04

When attempting a dry run using maproxy util.

time mapproxy-seed --dry-run -f  ~/maptiles.test.yml -s ~/seeds.test.yml --progress-file .mapproxy_seed_pgress

I am hoping to get a rough count of tiles produced for Zoom 20 in GLOBAL_WEBMERCATOR.

MAPTILES GRID CONFIG:

grids:
  GLOBAL_WEBMERCATOR:
    srs: EPSG:3857
    origin: nw


SEED CONFIG:

  test_main:
    caches: [cache_web_mercator_testing]
    grids: [GLOBAL_WEBMERCATOR]
    coverages: [nz_mainland]
    levels: [20]

All dry runs work fine until zoom 20 and above.  At Zoom 20 I get an error:

========== Seeding tasks ==========
Start seeding process (1 task)
  test_main:
    Seeding cache 'cache_web_mercator_testing' with grid 'GLOBAL_WEBMERCATOR' in EPSG:3857
    Limited to coverage in: 165.42907, -47.85948, 179.37452, -33.43041 (EPSG:4326)
    Levels: []
    Overwriting: no tiles
Traceback (most recent call last):
  File "/usr/local/bin/mapproxy-seed", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 361, in main
    return SeedScript()()
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 246, in __call__
    skip_geoms_for_last_levels=options.geom_levels)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 495, in seed
    seed_progress=seed_progress)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 514, in seed_task
    seed_progress=seed_progress)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 290, in __init__
    self.report_till_level = task.levels[num_seed_levels-1]
IndexError: list index out of range

If I hard code the resolutions to the GLOBAL_MERCATOR grid config:

grids:
  GLOBAL_WEBMERCATOR:
    srs: EPSG:3857
    origin: nw
    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]

The error goes away, however I get vastly different tile counts.

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.

Cheers,

Ian



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 [hidden email]) 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.

_______________________________________________
MapProxy mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] Global Mercator Zoom 20

Robert k

Hello Ian,

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.

example:
grids:
   webmercator:
     base: GLOBAL_WEBMERCATOR
     origin: nw
     num_levels: 20


Give it a try.

Best regards


Rob

Am 28.02.19 um 03:14 schrieb Ian Reese:
Hi MapProxy,

I'm using:

mapproxy-util --version
MapProxy 1.11.0
Ubuntu 16.04

When attempting a dry run using maproxy util.

time mapproxy-seed --dry-run -f  ~/maptiles.test.yml -s ~/seeds.test.yml --progress-file .mapproxy_seed_pgress

I am hoping to get a rough count of tiles produced for Zoom 20 in GLOBAL_WEBMERCATOR.

MAPTILES GRID CONFIG:

grids:
  GLOBAL_WEBMERCATOR:
    srs: EPSG:3857
    origin: nw


SEED CONFIG:

  test_main:
    caches: [cache_web_mercator_testing]
    grids: [GLOBAL_WEBMERCATOR]
    coverages: [nz_mainland]
    levels: [20]

All dry runs work fine until zoom 20 and above.  At Zoom 20 I get an error:

========== Seeding tasks ==========
Start seeding process (1 task)
  test_main:
    Seeding cache 'cache_web_mercator_testing' with grid 'GLOBAL_WEBMERCATOR' in EPSG:3857
    Limited to coverage in: 165.42907, -47.85948, 179.37452, -33.43041 (EPSG:4326)
    Levels: []
    Overwriting: no tiles
Traceback (most recent call last):
  File "/usr/local/bin/mapproxy-seed", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 361, in main
    return SeedScript()()
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/script.py", line 246, in __call__
    skip_geoms_for_last_levels=options.geom_levels)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 495, in seed
    seed_progress=seed_progress)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 514, in seed_task
    seed_progress=seed_progress)
  File "/usr/local/lib/python2.7/dist-packages/mapproxy/seed/seeder.py", line 290, in __init__
    self.report_till_level = task.levels[num_seed_levels-1]
IndexError: list index out of range

If I hard code the resolutions to the GLOBAL_MERCATOR grid config:

grids:
  GLOBAL_WEBMERCATOR:
    srs: EPSG:3857
    origin: nw
    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]

The error goes away, however I get vastly different tile counts.

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.

Cheers,

Ian



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 [hidden email]) 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.

_______________________________________________
MapProxy mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapproxy

_______________________________________________
MapProxy mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapproxy