<div>Thanks!</div><div><br></div><div>If I used GLOBAL_WEBMERCATOR, how could I limit the tile source to zooms 0-15 and the WMS source to 16-18?</div><div><br></div><div>I read that if the tiles came from two sources that are different based on zoom that I needed custom grids.</div><div><br></div><div>--al</div><div><br></div><div><br><div class="gmail_quote"><div>On Tue, Dec 20, 2016 at 2:10 AM Oliver Tonnhofer <<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="gmail_msg"><br><br class="gmail_msg"><br>your grid resolutions are not right. You have resolutions in the sub-milimeter range (0.0001672060 # 18).<br class="gmail_msg"><br>The values on the right look better. Can't you use the GLOBAL_WEBMERCATOR grid?<br class="gmail_msg"><br><br class="gmail_msg"><br>Regards,<br class="gmail_msg"><br>Oliver<br class="gmail_msg"><br><br class="gmail_msg"><br>--<br class="gmail_msg"><br>Oliver Tonnhofer  | Omniscale GmbH & Co KG  | <a href="https://omniscale.com" rel="noreferrer" class="gmail_msg" target="_blank">https://omniscale.com</a><br class="gmail_msg"><br>OpenStreetMap WMS and tile services         | <a href="https://maps.omniscale.com" rel="noreferrer" class="gmail_msg" target="_blank">https://maps.omniscale.com</a><br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br>> On 16.12.2016, at 18:34, Alberto Ponte <<a href="mailto:al.g.ponte@gmail.com" class="gmail_msg" target="_blank">al.g.ponte@gmail.com</a>> wrote:<br class="gmail_msg"><br>><br class="gmail_msg"><br>> We have two sources which we would like to present as a single layer.<br class="gmail_msg"><br>> The first source should be responsible for zooms 0-15 while the last<br class="gmail_msg"><br>> should be zooms 16-18.<br class="gmail_msg"><br>><br class="gmail_msg"><br>> Based on the current configuration, zooms 0-14 and 16-18 work as<br class="gmail_msg"><br>> expected but zoom 15 requests tiles from both sources.  I'm guessing<br class="gmail_msg"><br>> my min_res/max_res values in cache are off.  Can anyone shed some<br class="gmail_msg"><br>> light?<br class="gmail_msg"><br>><br class="gmail_msg"><br>> Also, if I wanted to seed this, would I just seed the sat_cache_out cache?<br class="gmail_msg"><br>><br class="gmail_msg"><br>> Here are the resolutions I used for EPSG:3857 zooms 0 - 18:<br class="gmail_msg"><br>><br class="gmail_msg"><br>>       43.8320494998 #  0      156543.03392800<br class="gmail_msg"><br>>       21.9160247499 #  1       78271.51696400<br class="gmail_msg"><br>>       10.9580123750 #  2       39135.75848200<br class="gmail_msg"><br>>        5.4790061875 #  3       19567.87924100<br class="gmail_msg"><br>>        2.7395030937 #  4        9783.93962050<br class="gmail_msg"><br>>        1.3697515469 #  5        4891.96981025<br class="gmail_msg"><br>>        0.6848757734 #  6        2445.98490513<br class="gmail_msg"><br>>        0.3424378867 #  7        1222.99245256<br class="gmail_msg"><br>>        0.1712189434 #  8         611.49622628<br class="gmail_msg"><br>>        0.0856094717 #  9         305.74811314<br class="gmail_msg"><br>>        0.0428047358 # 10         152.87405657<br class="gmail_msg"><br>>        0.0214023679 # 11          76.43702829<br class="gmail_msg"><br>>        0.0107011840 # 12          38.21851414<br class="gmail_msg"><br>>        0.0053505920 # 13          19.10925707<br class="gmail_msg"><br>>        0.0026752960 # 14           9.55462854<br class="gmail_msg"><br>>        0.0013376480 # 15           4.77731427<br class="gmail_msg"><br>>        0.0006688240 # 16           2.38865713<br class="gmail_msg"><br>>        0.0003344120 # 17           1.19432857<br class="gmail_msg"><br>>        0.0001672060 # 18           0.59716428<br class="gmail_msg"><br>><br class="gmail_msg"><br>> Here is the configuration:<br class="gmail_msg"><br>><br class="gmail_msg"><br>> layers:<br class="gmail_msg"><br>>  - name: Satellite<br class="gmail_msg"><br>>    title: MapLarge Satellite<br class="gmail_msg"><br>>    sources: [sat_cache_out]<br class="gmail_msg"><br>><br class="gmail_msg"><br>> caches:<br class="gmail_msg"><br>>  sat_cache_in_low:<br class="gmail_msg"><br>>    grids: [low_zooms]<br class="gmail_msg"><br>>    sources: [sat_low_zooms]<br class="gmail_msg"><br>>    meta_size: [1,1]<br class="gmail_msg"><br>>    meta_buffer: 0<br class="gmail_msg"><br>>    cache:<br class="gmail_msg"><br>>      type: sqlite<br class="gmail_msg"><br>>      dirname: /var/lib/mod_tile/mapproxy_satellite/low_zooms/<br class="gmail_msg"><br>>  sat_cache_in_med:<br class="gmail_msg"><br>>    grids: [med_zooms]<br class="gmail_msg"><br>>    sources: [sat_med_zooms]<br class="gmail_msg"><br>>    meta_size: [1,1]<br class="gmail_msg"><br>>    meta_buffer: 0<br class="gmail_msg"><br>>    cache:<br class="gmail_msg"><br>>      type: sqlite<br class="gmail_msg"><br>>      dirname: /var/lib/mod_tile/mapproxy_satellite/med_zooms/<br class="gmail_msg"><br>>  sat_cache_out:<br class="gmail_msg"><br>>    grids: [GLOBAL_GEODETIC,GLOBAL_WEBMERCATOR]<br class="gmail_msg"><br>>    meta_size: [1,1]<br class="gmail_msg"><br>>    meta_buffer: 0<br class="gmail_msg"><br>>    sources: [sat_cache_in_low,sat_cache_in_med]<br class="gmail_msg"><br>>    cache:<br class="gmail_msg"><br>>      type: sqlite<br class="gmail_msg"><br>>      dirname: /var/lib/mod_tile/mapproxy_satellite/out/<br class="gmail_msg"><br>><br class="gmail_msg"><br>> sources:<br class="gmail_msg"><br>>  sat_low_zooms:<br class="gmail_msg"><br>>    # zooms 0 - 15 FROM <a href="http://NATIONALMAP.GOV" rel="noreferrer" class="gmail_msg" target="_blank">NATIONALMAP.GOV</a> (TNM<br class="gmail_msg"><br>> <a href="https://viewer.nationalmap.gov/help/3.0%20TNM%20Base%20Maps.htm" rel="noreferrer" class="gmail_msg" target="_blank">https://viewer.nationalmap.gov/help/3.0%20TNM%20Base%20Maps.htm</a>)<br class="gmail_msg"><br>>    type: tile<br class="gmail_msg"><br>>    url: <a href="http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/%(z)s/%(y)s/%(x)s" rel="noreferrer" class="gmail_msg" target="_blank">http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/%(z)s/%(y)s/%(x)s</a><br class="gmail_msg"><br>>    grid: low_zooms<br class="gmail_msg"><br>>  sat_med_zooms:<br class="gmail_msg"><br>>    # zooms 16-18 @ 100% from NAIP<br class="gmail_msg"><br>>    type: wms<br class="gmail_msg"><br>>    wms_opts:<br class="gmail_msg"><br>>      version: 1.3.0<br class="gmail_msg"><br>>    req:<br class="gmail_msg"><br>>      url: <a href="http://ec2-54-161-169-51.compute-1.amazonaws.com/wms?map=/data/map/mapfiles/naip_docker.map&service=WMS" rel="noreferrer" class="gmail_msg" target="_blank">http://ec2-54-161-169-51.compute-1.amazonaws.com/wms?map=/data/map/mapfiles/naip_docker.map&service=WMS</a><br class="gmail_msg"><br>>      layers: utm10-100pct<br class="gmail_msg"><br>><br class="gmail_msg"><br>> grids:<br class="gmail_msg"><br>>  low_zooms:<br class="gmail_msg"><br>>    srs: EPSG:3857<br class="gmail_msg"><br>>    max_res: 2.38865713<br class="gmail_msg"><br>>    min_res: 156543.03392800<br class="gmail_msg"><br>>    origin: ul<br class="gmail_msg"><br>>  med_zooms:<br class="gmail_msg"><br>>    srs: EPSG:3857<br class="gmail_msg"><br>>    max_res: 0.29858214<br class="gmail_msg"><br>>    min_res: 2.38865713<br class="gmail_msg"><br>> _______________________________________________<br class="gmail_msg"><br>> MapProxy mailing list<br class="gmail_msg"><br>> <a href="mailto:MapProxy@lists.osgeo.org" class="gmail_msg" target="_blank">MapProxy@lists.osgeo.org</a><br class="gmail_msg"><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br class="gmail_msg"><br><br class="gmail_msg"><br></blockquote></div></div>