You can adjust the number of levels in the source grid, osm_grid. I think that will work<span></span><br><br>On Friday, 2 December 2016, Mikael Gronfeldt <<a href="mailto:mikael.gronfeldt@visma.com">mikael.gronfeldt@visma.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div 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://%3CmapProxy" target="_blank">http://<mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png" target="_blank"> ip>/osm_<wbr>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" target="_blank">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" target="_blank"></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" target="_blank"></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" target="_blank"></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" target="_blank"></a><a href="http://%3CmapProxy" target="_blank"><mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png" target="_blank"> 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" target="_blank">/mapproxy/tms/1.0.0/osm/osm_<wbr>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" target="_blank"></a></div><div><a href="http://%3CmapProxy" style="font-size:11pt" target="_blank"><mapProxy</a><a href="http://10.170.9.218/osm_tiles/%(z)s/%(x)s/%(y)s.png" style="font-size:11pt" target="_blank"> 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" target="_blank">http://<mapProxyip>/mapproxy/<wbr>tms/1.0.0/osm/osm_grid/18/26/<wbr>35.png</a></div><div><br></div><div>Will result in a 404</div><div><div>
<span style="font-family:monospace;font-size:13px">HTTP Error "<a href="http://10.170.9.218/osm_tiles/19/26/524252.png" target="_blank">http://<tile_server_ip>/osm_<wbr>tiles/19/26/524252.png</a>": 404</span></div></div><div><span style="font-family:monospace;font-size:13px"><br></span></div><div><span style="font-family:monospace;font-size:13px">Because my tile server cannot deliver level 19 tiles.</span></div><div><br></div><div><div><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><div><div><div>
<p class="MsoNormal" style="margin-bottom:6.0pt">/Mikael </p></div></div></div></div>
</div></blockquote>