<?xml version="1.0" encoding="utf-16"?><html><head>

<style id="signatureStyle"><!--#xcb63de9958884f2
{font-family: Calibri; font-size: 11pt;}
#xcb63de9958884f2 #xea030e0c663d482faefbcf0c12c377ce p.MsoNormal, #xcb63de9958884f2 #xea030e0c663d482faefbcf0c12c377ce div.MsoNormal
{margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;}
#xcb63de9958884f2
{font-family: Tahoma; font-size: 12pt;}
--></style>
<style><![CDATA[#x74b78fec40ff4360bfd1d7a3621ed782{
        font-family:Calibri;
        font-size:11pt;
}#xd03b3ea548ad47f1bd082c178236026b{
        font-family:Calibri;
        font-size:11pt;
}]]><!--body
{font-family: Calibri; font-size: 11pt;}
--></style>
</head>
<body bgcolor="#FFFFFF" text="#000000" style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal">
<div>I have  situation where my MapProxy server request a different level from my OSM tile server than I expect.</div><div>All in all it work fine, just that my Tile server cannot deliver tiles from level 19</div><div><br /></div><div>My  <span style="font-size: 11pt;">yaml look like this:</span></div><div>....</div><div> osm_source:<br />     type: tile<br />    grid: osm_grid<br />     url: <a href="http://<mapProxy">http://<mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png"> ip>/osm_tiles/%(z)s/%(x)s/%(y)s.png</a><br />    transparent: true<br /></div><div>.....</div><div><br /></div><div>When I send the request <a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;">http://</a><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;"></a><div id="xd03b3ea548ad47f1bd082c178236026b" style="display: inline !important;"><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;"></a><div bgcolor="#FFFFFF" text="#000000" style="font-size: 11pt; display: inline !important;"><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;"></a><div style="display: inline !important;"><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;"></a><a href="http://<mapProxy"><mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png"> ip></a></div></div></div><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;">/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png</a> from my browser.</div><div><br /></div><div>My mapproxy server sends this request to my Tile server:</div><div><span style="font-size: 11pt;">Snippet from my Apache access.log:</span></div><div bgcolor="#FFFFFF" text="#000000" style="font-size: 11pt;"><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png" style="font-size: 11pt;"></a></div><div><a href="http://<mapProxy" style="font-size: 11pt;"><mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png" style="font-size: 11pt;"> ip></a> - - [02/Dec/2016:16:39:15 +0100] "GET /osm_tiles/18/26/262108.png HTTP/1.1" 200 352 "-" "MapProxy-1.9.0"<br /></div><div><br /></div><div>a request for a level 18 tile:</div><div><a href="http://10.170.9.150/mapproxy/tms/1.0.0/osm/osm_grid/18/26/35.png">http://<mapProxyip>/mapproxy/tms/1.0.0/osm/osm_grid/18/26/35.png</a></div><div><br /></div><div>Will result in a 404</div><div><div>
<span style="font-family: monospace; font-size: 13px; font-variant-ligatures: normal; orphans: 2; widows: 2;">HTTP Error "<a href="http://10.170.9.218/osm_tiles/19/26/524252.png">http://<tile_server_ip>/osm_tiles/19/26/524252.png</a>": 404</span></div></div><div><span style="font-family: monospace; font-size: 13px; font-variant-ligatures: normal; orphans: 2; widows: 2;"><br /></span></div><div><span style="font-family: monospace; font-size: 13px; font-variant-ligatures: normal; orphans: 2; widows: 2;">Because my tile server cannot deliver level 19 tiles.</span></div><div><br /></div><div><div id="x74b78fec40ff4360bfd1d7a3621ed782"><div bgcolor="#FFFFFF" text="#000000" style="font-size: 11pt;"><div>1 is added to the %(z)s segment in all requests through all layers. X and Y are apparently not affected. </div></div></div></div><div><br /></div><div>How can I ensure that MapProxy do not request a level that is 1 higher than expected?</div><div><br /></div><div></div><div id="signature_old"><div id="xcb63de9958884f2"><div><div id="xea030e0c663d482faefbcf0c12c377ce">


<p class="MsoNormal" style="margin-bottom:6.0pt" xmlns="http://www.w3.org/TR/REC-html40">/Mikael </p></div></div></div></div>
</body></html>