<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://2/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Paul,<div><br></div><div><div><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">How did you set up the layer that combined all of them?<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "></div></div></div></blockquote><div><br></div><div>I combined them all in one layer by just doing the following in my layer definition:</div><div><br></div><div>layers:</div><div>  name: layer_name</div><div>  title: layer description</div><div>  sources: [whole_earth_cache, detailed_area1_cache, detailed_area2_cache]</div><div><br></div><div>As I understand it, with the above setup, if I request the tiles of a certain area it would:</div><div>1) get all the tiles of whole_earth_cache</div><div>2) if there are some tiles in detailed_area1_cache it gets all the corresponding tiles and layers them over the top</div><div>3) if there are some tiles in detailed_area2_cache it gets all the corresponding tiles and layers them over the top</div><div><br></div><div>so the resulting tile images that get served out are a mix of all 3 caches. </div><div><br></div><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Also, when you say you set up a cache for the detailed area, how did you specify the extent of the detailed area? I don’t see anything in the caches docs about specifying coverage.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div></div></div></blockquote><div><br></div><div>In my setup I precache everything I need as my users run offline without internet access, so I setup the extent in my seed.yaml. In this file you can define a coverage like:</div><div><br></div><div>coverages:</div><div>  coverage_of_detailed_area_1</div><div>    ogr_datasource: /path to shapefile.shp</div><div>    ogr_srs 'EPSG:code_of_projection'</div><div>    ogr_where: 'field_name = "my area of interest'</div><div><br></div><div><br></div><div>then in the seed.yaml you can setup a seed that refers to this coverage and 1 for the whole globe:</div><div><br></div><div><br></div><div>seeds:</div><div>  detailed_area_1_seed:</div><div>     caches: [name_of_the_cache_you_defined_in_your_mapproxy.yaml_for_the_detailed_area1]</div><div>     levels:</div><div>       to: 19 #whatever level you want</div><div>     coverages: [coverage_of_detailed_area_1]</div><div>     refresh_before:</div><div>       weeks:52</div><div><br></div><div><div>  entire_globe_seed:</div><div>     caches: [name_of_the_cache_you_defined_in_your_mapproxy.yaml_for_the_entire_globe]</div><div>     levels:</div><div>       to: 20 #whatever level you want</div><div>     refresh_before:</div><div>       weeks:52</div><div><br></div></div><div><br></div><div>Then I run mapproxy-seed to pre cache these areas.</div><div><br></div><div>Regards,</div><div><br></div><div>Benjamin Wragg</div><div><br></div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="border-style: none none none solid; border-left-width: 1.5pt; border-left-color: blue; padding: 0in 0in 0in 4pt; "><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in; position: static; z-index: auto; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; ">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; "><span class="Apple-converted-space"> </span><a href="mailto:mapproxy-bounces@lists.osgeo.org">mapproxy-bounces@lists.osgeo.org</a> [mailto:mapproxy-<a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Benjamin Wragg<br><b>Sent:</b><span class="Apple-converted-space"> </span>Tuesday, August 07, 2012 1:24 AM<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:mapproxy@lists.osgeo.org">mapproxy@lists.osgeo.org</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [MapProxy] Dealing with a source with multiple resolutions in one layer<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Hi Paul,<o:p></o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">I think I had a similar setup problem the other day on this thread "<span style="font-size: 9pt; ">Dealing with a source with multiple resolutions in one layer". I had 1 source of 19 levels that I wanted to cache at 8 levels all over and then greater levels over certain regions.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Basically to get it to work I did the following:<o:p></o:p></div></div><div><ol start="1" type="1" style="margin-bottom: 0in; "><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">setup 1 source which had a grid that encompassed the whole earth e.g GLOBAL_MERCATOR with the maximum number of levels set, for me this was num_levels 19.<o:p></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">setup 1 cache for the whole earth with a grid of GLOBAL_MERCATOR with num_levels 8<o:p></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">setup a second cache for "detailed area 1" with a grid of GLOBAL_MERCATOR with num_levels 14.<o:p></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">setup a third cache for "detailed area 2" with a grid of GLOBAL_MERCATOR with num_levels 1<o:p></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">....another cache for each area I want more than num_level 8.<o:p></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">In my seed.yaml I have a coverage defined for each of the above areas and a seed that pre-caches each coverage.<o:p></o:p></li></ol><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Does that make sense? Hope it helps..<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Regards,<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Benjamin Wragg<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">On 06/08/2012, at 11:05 AM, Paul Norman <<a href="mailto:penorman@mac.com" style="color: purple; text-decoration: underline; ">penorman@mac.com</a>> wrote:<o:p></o:p></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><br><br><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">I run mapproxy to cache several WMS layers and convert them to TMS. Normally<br>I set up a layer, a cache using a grid with an appropriate num_levels for<br>the resolution of the source and a WMS source.<br><br>I've run into the case where one of the WMS layers is composed of multiple<br>imagery shots at different resolution. I would like to cache up to level 21<br>(zoom 20 in google-style numbering) for parts of it and to 19 in other<br>parts.<br><br>Is this possible? I can get polygons representing the extents of each part<br>of the layer.<br><br>If I use the same grid for the entire area then it could end up caching<br>unnecessary data in the lower-resolution areas.<br><br>_______________________________________________<br>MapProxy mailing list<br><a href="mailto:MapProxy@lists.osgeo.org" style="color: purple; text-decoration: underline; ">MapProxy@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" style="color: purple; text-decoration: underline; ">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><o:p></o:p></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div></div></div><p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "></p></div></div></div></blockquote></div><br></div></body></html>