<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><base href="x-msg://2/"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1576429889;
        mso-list-template-ids:1730187810;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’ve been trying this, but the layer <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>- name: bc_best_2009<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  sources: [bc_gvrd_east_2009_cache, bc_gvrd_west_2009_cache]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>  title: BC best imagery<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>will not show up, either by directly requesting or in the demo service. I tried running serve-develop and it didn’t work with that either.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Benjamin Wragg [mailto:bwragg@isasolutions.com.au] <br><b>Sent:</b> Sunday, August 12, 2012 1:06 PM<br><b>To:</b> Paul Norman<br><b>Cc:</b> mapproxy@lists.osgeo.org<br><b>Subject:</b> Re: [MapProxy] Dealing with a source with multiple resolutions in one layer<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Paul,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>How did you set up the layer that combined all of them?</span><o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I combined them all in one layer by just doing the following in my layer definition:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>layers:<o:p></o:p></p></div><div><p class=MsoNormal>  name: layer_name<o:p></o:p></p></div><div><p class=MsoNormal>  title: layer description<o:p></o:p></p></div><div><p class=MsoNormal>  sources: [whole_earth_cache, detailed_area1_cache, detailed_area2_cache]<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>As I understand it, with the above setup, if I request the tiles of a certain area it would:<o:p></o:p></p></div><div><p class=MsoNormal>1) get all the tiles of whole_earth_cache<o:p></o:p></p></div><div><p class=MsoNormal>2) if there are some tiles in detailed_area1_cache it gets all the corresponding tiles and layers them over the top<o:p></o:p></p></div><div><p class=MsoNormal>3) if there are some tiles in detailed_area2_cache it gets all the corresponding tiles and layers them over the top<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>so the resulting tile images that get served out are a mix of all 3 caches. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>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:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>coverages:<o:p></o:p></p></div><div><p class=MsoNormal>  coverage_of_detailed_area_1<o:p></o:p></p></div><div><p class=MsoNormal>    ogr_datasource: /path to shapefile.shp<o:p></o:p></p></div><div><p class=MsoNormal>    ogr_srs 'EPSG:code_of_projection'<o:p></o:p></p></div><div><p class=MsoNormal>    ogr_where: 'field_name = "my area of interest'<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>then in the seed.yaml you can setup a seed that refers to this coverage and 1 for the whole globe:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>seeds:<o:p></o:p></p></div><div><p class=MsoNormal>  detailed_area_1_seed:<o:p></o:p></p></div><div><p class=MsoNormal>     caches: [name_of_the_cache_you_defined_in_your_mapproxy.yaml_for_the_detailed_area1]<o:p></o:p></p></div><div><p class=MsoNormal>     levels:<o:p></o:p></p></div><div><p class=MsoNormal>       to: 19 #whatever level you want<o:p></o:p></p></div><div><p class=MsoNormal>     coverages: [coverage_of_detailed_area_1]<o:p></o:p></p></div><div><p class=MsoNormal>     refresh_before:<o:p></o:p></p></div><div><p class=MsoNormal>       weeks:52<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>  entire_globe_seed:<o:p></o:p></p></div><div><p class=MsoNormal>     caches: [name_of_the_cache_you_defined_in_your_mapproxy.yaml_for_the_entire_globe]<o:p></o:p></p></div><div><p class=MsoNormal>     levels:<o:p></o:p></p></div><div><p class=MsoNormal>       to: 20 #whatever level you want<o:p></o:p></p></div><div><p class=MsoNormal>     refresh_before:<o:p></o:p></p></div><div><p class=MsoNormal>       weeks:52<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Then I run mapproxy-seed to pre cache these areas.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Benjamin Wragg<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;z-index:auto'><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><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</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><p class=MsoNormal>Hi Paul,<o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>I think I had a similar setup problem the other day on this thread "<span style='font-size:9.0pt'>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></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Basically to get it to work I did the following:<o:p></o:p></p></div></div><div><ol style='margin-top:0in' start=1 type=1><li class=MsoNormal style='mso-list:l0 level1 lfo1'>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='mso-list:l0 level1 lfo1'>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='mso-list:l0 level1 lfo1'>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='mso-list:l0 level1 lfo1'>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='mso-list:l0 level1 lfo1'>....another cache for each area I want more than num_level 8.<o:p></o:p></li><li class=MsoNormal style='mso-list:l0 level1 lfo1'>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><p class=MsoNormal> <o:p></o:p></p></div></div></div><div><div><p class=MsoNormal>Does that make sense? Hope it helps..<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Benjamin Wragg<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><div><div><p class=MsoNormal>On 06/08/2012, at 11:05 AM, Paul Norman <<a href="mailto:penorman@mac.com"><span style='color:purple'>penorman@mac.com</span></a>> wrote:<o:p></o:p></p></div></div><div><p class=MsoNormal><br><br><br><o:p></o:p></p></div><div><p class=MsoNormal>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"><span style='color:purple'>MapProxy@lists.osgeo.org</span></a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapproxy"><span style='color:purple'>http://lists.osgeo.org/mailman/listinfo/mapproxy</span></a><o:p></o:p></p></div></div><div><p class=MsoNormal> <o:p></o:p></p></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>