[MapProxy] Cache with multiple grids

Piero Campalani piero.campa at gmail.com
Fri Nov 6 09:13:21 PST 2015


Dear list (dear Oliver! ;)),

I am defining a seeding task on a cache with multiple grids. Each grid is
spread a different range of zoom levels and of course over different areas.

(*) It seems that MapProxy does not create a combined set of relative zoom
levels in my cache.

In the case of 2 grids, the coverage of the grid is taken from the 2nd one
while tiles are the ones from the 1st grid since when it's time to seed the
2nd grid, MapProxy wrongly believes the tiles are already cached (probably
because the path is the same due to (*)).

Am I doing something wrong here?

Thanks for helping,
-Piero

PS Appending some info:

== BEGIN ========================================================

$ mapproxy-util grids -f mapproxy.yaml -g angola_grid
angola_grid:
    Configuration:
        base: 'GLOBAL_WEBMERCATOR'
        bbox: [11.25, -16.63619187839765, 14.0625, -13.923403897723334]
        bbox_srs: 'EPSG:4326'
        max_res: 100
        origin*: 'ul'
        tile_size*: [256, 256]
    Levels: Resolutions, # x * y = total tiles
        00:  1222.9924525628203, #      1 * 1      =        1
        01:  611.4962262814101,  #      2 * 2      =        4
        02:  305.7481131407051,  #      4 * 4      =       16
        03:  152.87405657035254, #      8 * 8      =       64
-----------------------------------------------------------------
$ mapproxy-util grids -f mapproxy.yaml -g zagreb_grid
zagreb_grid:
    Configuration:
        base: 'GLOBAL_WEBMERCATOR'
        bbox: [15.99609375, 45.813486496799705, 16.01806640625,
45.82879925192134]
        bbox_srs: 'EPSG:4326'
        max_res: 0.25
        origin*: 'ul'
        tile_size*: [256, 256]
    Levels: Resolutions, # x * y = total tiles
        00:  9.554628535654047,   #      1 * 1      =        1
        01:  4.777314267827023,   #      2 * 2      =        4
        02:  2.3886571339135116,  #      4 * 4      =       16
        03:  1.1943285669567558,  #      8 * 8      =       64
        04:  0.5971642834783779,  #     16 * 16     =      256
        05:  0.29858214173918896, #     32 * 32     =   1.024K

-----------------------------------------------------------------
$ grep multiple_grids_cache: -A 7 caches.yaml
  multiple_grids_cache:
    format: mixed
    request_format: image/png
    grids: [zagreb_grid, angola_grid]
    sources: [map_source_tms]
    cache:
      type: file
      directory_layout: tc

-----------------------------------------------------------------
$ mapproxy-seed -f mapproxy.yaml -s seed.yaml --dry-run
========== Seeding tasks ==========
Start seeding process (7 tasks)
  multiple_grids_seed:
    Seeding cache 'multiple_grids_cache' with grid 'zagreb_grid' in
EPSG:3857
    Limited to coverage in: 15.99609, 45.81349, 16.01807, 45.82880
(EPSG:4326)
    Levels: [0, 1, 2, 3, 4, 5]
    Overwriting: no tiles
[18:10:50]  0   0.00% 1780677.01093, 5750510.51195, 1783122.99584,
5752956.49686 (0 tiles) ETA: N/A
[18:10:50]  1   0.00% 1780677.01093, 5750510.51195, 1783122.99584,
5752956.49686 (0 tiles) ETA: N/A
[18:10:50]  2   0.00% 1780677.01093, 5751733.50440, 1781900.00338,
5752956.49686 (0 tiles) ETA: N/A
[18:10:50]  3   0.00% 1780677.01093, 5752345.00063, 1781288.50716,
5752956.49686 (0 tiles) ETA: N/A
[18:10:50]  4   0.00% 1780677.01093, 5752650.74874, 1780982.75904,
5752956.49686 (0 tiles) ETA: N/A
[18:10:50]  4   1.56% 1780982.75904, 5752650.74874, 1781288.50716,
5752956.49686 (21 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4   3.12% 1780677.01093, 5752345.00063, 1780982.75904,
5752650.74874 (42 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4   4.69% 1780982.75904, 5752345.00063, 1781288.50716,
5752650.74874 (63 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3   6.25% 1781288.50716, 5752345.00063, 1781900.00338,
5752956.49686 (85 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4   6.25% 1781288.50716, 5752650.74874, 1781594.25527,
5752956.49686 (85 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4   7.81% 1781594.25527, 5752650.74874, 1781900.00338,
5752956.49686 (106 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4   9.38% 1781288.50716, 5752345.00063, 1781594.25527,
5752650.74874 (127 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  10.94% 1781594.25527, 5752345.00063, 1781900.00338,
5752650.74874 (148 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  12.50% 1780677.01093, 5751733.50440, 1781288.50716,
5752345.00063 (170 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  12.50% 1780677.01093, 5752039.25252, 1780982.75904,
5752345.00063 (170 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  14.06% 1780982.75904, 5752039.25252, 1781288.50716,
5752345.00063 (191 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  15.62% 1780677.01093, 5751733.50440, 1780982.75904,
5752039.25252 (212 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  17.19% 1780982.75904, 5751733.50440, 1781288.50716,
5752039.25252 (233 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  18.75% 1781288.50716, 5751733.50440, 1781900.00338,
5752345.00063 (255 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  18.75% 1781288.50716, 5752039.25252, 1781594.25527,
5752345.00063 (255 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  20.31% 1781594.25527, 5752039.25252, 1781900.00338,
5752345.00063 (276 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  21.88% 1781288.50716, 5751733.50440, 1781594.25527,
5752039.25252 (297 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  23.44% 1781594.25527, 5751733.50440, 1781900.00338,
5752039.25252 (318 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  25.00% 1781900.00338, 5751733.50440, 1783122.99584,
5752956.49686 (341 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  25.00% 1781900.00338, 5752345.00063, 1782511.49961,
5752956.49686 (341 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  25.00% 1781900.00338, 5752650.74874, 1782205.75150,
5752956.49686 (341 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  26.56% 1782205.75150, 5752650.74874, 1782511.49961,
5752956.49686 (362 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  28.12% 1781900.00338, 5752345.00063, 1782205.75150,
5752650.74874 (383 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  29.69% 1782205.75150, 5752345.00063, 1782511.49961,
5752650.74874 (404 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  31.25% 1782511.49961, 5752345.00063, 1783122.99584,
5752956.49686 (426 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  31.25% 1782511.49961, 5752650.74874, 1782817.24772,
5752956.49686 (426 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  32.81% 1782817.24772, 5752650.74874, 1783122.99584,
5752956.49686 (447 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  34.38% 1782511.49961, 5752345.00063, 1782817.24772,
5752650.74874 (468 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  35.94% 1782817.24772, 5752345.00063, 1783122.99584,
5752650.74874 (489 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  37.50% 1781900.00338, 5751733.50440, 1782511.49961,
5752345.00063 (511 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  37.50% 1781900.00338, 5752039.25252, 1782205.75150,
5752345.00063 (511 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  39.06% 1782205.75150, 5752039.25252, 1782511.49961,
5752345.00063 (532 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  40.62% 1781900.00338, 5751733.50440, 1782205.75150,
5752039.25252 (553 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  42.19% 1782205.75150, 5751733.50440, 1782511.49961,
5752039.25252 (574 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  43.75% 1782511.49961, 5751733.50440, 1783122.99584,
5752345.00063 (596 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  43.75% 1782511.49961, 5752039.25252, 1782817.24772,
5752345.00063 (596 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  45.31% 1782817.24772, 5752039.25252, 1783122.99584,
5752345.00063 (617 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  46.88% 1782511.49961, 5751733.50440, 1782817.24772,
5752039.25252 (638 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  48.44% 1782817.24772, 5751733.50440, 1783122.99584,
5752039.25252 (659 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  50.00% 1780677.01093, 5750510.51195, 1781900.00338,
5751733.50440 (682 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  50.00% 1780677.01093, 5751122.00818, 1781288.50716,
5751733.50440 (682 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  50.00% 1780677.01093, 5751427.75629, 1780982.75904,
5751733.50440 (682 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  51.56% 1780982.75904, 5751427.75629, 1781288.50716,
5751733.50440 (703 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  53.12% 1780677.01093, 5751122.00818, 1780982.75904,
5751427.75629 (724 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  54.69% 1780982.75904, 5751122.00818, 1781288.50716,
5751427.75629 (745 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  56.25% 1781288.50716, 5751122.00818, 1781900.00338,
5751733.50440 (767 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  56.25% 1781288.50716, 5751427.75629, 1781594.25527,
5751733.50440 (767 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  57.81% 1781594.25527, 5751427.75629, 1781900.00338,
5751733.50440 (788 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  59.38% 1781288.50716, 5751122.00818, 1781594.25527,
5751427.75629 (809 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  60.94% 1781594.25527, 5751122.00818, 1781900.00338,
5751427.75629 (830 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  62.50% 1780677.01093, 5750510.51195, 1781288.50716,
5751122.00818 (852 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  62.50% 1780677.01093, 5750816.26006, 1780982.75904,
5751122.00818 (852 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  64.06% 1780982.75904, 5750816.26006, 1781288.50716,
5751122.00818 (873 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  65.62% 1780677.01093, 5750510.51195, 1780982.75904,
5750816.26006 (894 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  67.19% 1780982.75904, 5750510.51195, 1781288.50716,
5750816.26006 (915 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  68.75% 1781288.50716, 5750510.51195, 1781900.00338,
5751122.00818 (937 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  68.75% 1781288.50716, 5750816.26006, 1781594.25527,
5751122.00818 (937 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  70.31% 1781594.25527, 5750816.26006, 1781900.00338,
5751122.00818 (958 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  71.88% 1781288.50716, 5750510.51195, 1781594.25527,
5750816.26006 (979 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  73.44% 1781594.25527, 5750510.51195, 1781900.00338,
5750816.26006 (1000 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  75.00% 1781900.00338, 5750510.51195, 1783122.99584,
5751733.50440 (1023 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  75.00% 1781900.00338, 5751122.00818, 1782511.49961,
5751733.50440 (1023 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  75.00% 1781900.00338, 5751427.75629, 1782205.75150,
5751733.50440 (1023 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  76.56% 1782205.75150, 5751427.75629, 1782511.49961,
5751733.50440 (1044 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  78.12% 1781900.00338, 5751122.00818, 1782205.75150,
5751427.75629 (1065 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  79.69% 1782205.75150, 5751122.00818, 1782511.49961,
5751427.75629 (1086 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  81.25% 1782511.49961, 5751122.00818, 1783122.99584,
5751733.50440 (1108 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  81.25% 1782511.49961, 5751427.75629, 1782817.24772,
5751733.50440 (1108 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  82.81% 1782817.24772, 5751427.75629, 1783122.99584,
5751733.50440 (1129 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  84.38% 1782511.49961, 5751122.00818, 1782817.24772,
5751427.75629 (1150 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  85.94% 1782817.24772, 5751122.00818, 1783122.99584,
5751427.75629 (1171 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  87.50% 1781900.00338, 5750510.51195, 1782511.49961,
5751122.00818 (1193 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  87.50% 1781900.00338, 5750816.26006, 1782205.75150,
5751122.00818 (1193 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  89.06% 1782205.75150, 5750816.26006, 1782511.49961,
5751122.00818 (1214 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  90.62% 1781900.00338, 5750510.51195, 1782205.75150,
5750816.26006 (1235 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  92.19% 1782205.75150, 5750510.51195, 1782511.49961,
5750816.26006 (1256 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  93.75% 1782511.49961, 5750510.51195, 1783122.99584,
5751122.00818 (1278 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  93.75% 1782511.49961, 5750816.26006, 1782817.24772,
5751122.00818 (1278 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  95.31% 1782817.24772, 5750816.26006, 1783122.99584,
5751122.00818 (1299 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  96.88% 1782511.49961, 5750510.51195, 1782817.24772,
5750816.26006 (1320 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  4  98.44% 1782817.24772, 5750510.51195, 1783122.99584,
5750816.26006 (1341 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  0 100.00% 1780677.01093, 5750510.51195, 1783122.99584,
5752956.49686 (1365 tiles) ETA: 2015-11-06-18:10:50
  zagreb_hr_google_sat_seed:
    Seeding cache 'multiple_grids_cache' with grid 'angola_grid' in
EPSG:3857
    Limited to coverage in: 11.25000, -16.63619, 14.06250, -13.92340
(EPSG:4326)
    Levels: [0, 1, 2, 3]
    Overwriting: no tiles
[18:10:50]  0   0.00% 1252344.27142, -1878516.40714, 1565430.33928,
-1565430.33928 (0 tiles) ETA: N/A
[18:10:50]  1   0.00% 1252344.27142, -1878516.40714, 1565430.33928,
-1565430.33928 (0 tiles) ETA: N/A
[18:10:50]  2   0.00% 1252344.27142, -1721973.37321, 1408887.30535,
-1565430.33928 (0 tiles) ETA: N/A
[18:10:50]  3   0.00% 1252344.27142, -1643701.85624, 1330615.78839,
-1565430.33928 (0 tiles) ETA: N/A
[18:10:50]  3   6.25% 1330615.78839, -1643701.85624, 1408887.30535,
-1565430.33928 (5 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  12.50% 1252344.27142, -1721973.37321, 1330615.78839,
-1643701.85624 (10 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  18.75% 1330615.78839, -1721973.37321, 1408887.30535,
-1643701.85624 (15 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  25.00% 1408887.30535, -1721973.37321, 1565430.33928,
-1565430.33928 (21 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  25.00% 1408887.30535, -1643701.85624, 1487158.82232,
-1565430.33928 (21 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  31.25% 1487158.82232, -1643701.85624, 1565430.33928,
-1565430.33928 (26 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  37.50% 1408887.30535, -1721973.37321, 1487158.82232,
-1643701.85624 (31 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  43.75% 1487158.82232, -1721973.37321, 1565430.33928,
-1643701.85624 (36 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  50.00% 1252344.27142, -1878516.40714, 1408887.30535,
-1721973.37321 (42 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  50.00% 1252344.27142, -1800244.89017, 1330615.78839,
-1721973.37321 (42 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  56.25% 1330615.78839, -1800244.89017, 1408887.30535,
-1721973.37321 (47 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  62.50% 1252344.27142, -1878516.40714, 1330615.78839,
-1800244.89017 (52 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  68.75% 1330615.78839, -1878516.40714, 1408887.30535,
-1800244.89017 (57 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  2  75.00% 1408887.30535, -1878516.40714, 1565430.33928,
-1721973.37321 (63 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  75.00% 1408887.30535, -1800244.89017, 1487158.82232,
-1721973.37321 (63 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  81.25% 1487158.82232, -1800244.89017, 1565430.33928,
-1721973.37321 (68 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  87.50% 1408887.30535, -1878516.40714, 1487158.82232,
-1800244.89017 (73 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  3  93.75% 1487158.82232, -1878516.40714, 1565430.33928,
-1800244.89017 (78 tiles) ETA: 2015-11-06-18:10:50
[18:10:50]  0 100.00% 1252344.27142, -1878516.40714, 1565430.33928,
-1565430.33928 (85 tiles) ETA: 2015-11-06-18:10:50

======================================================= END ==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20151106/b0d4388c/attachment-0001.html>


More information about the MapProxy mailing list