<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<div>Thanks for that pointer, Thomas.</div>
<div><br>
</div>
<div>So, if I read the code correctly, here is the line which reads the "restricted_extent" attribute from the configuration file:<br>
https://github.com/mapserver/mapcache/blob/master/lib/configuration_xml.c#L680<br>
and stores it in gridlink->restricted_extent.<br>
Here is the line which produces the error I see, after checking against tile->grid_link->grid_limits<br>
https://github.com/mapserver/mapcache/blob/master/lib/tileset.c#L176</div>
<div><br>
</div>
<div>But I can find nowhere in the code where either <br>
1) gridlink->restricted_extent is substituted into grid_link->grid_limits, or<br>
2) A check is performed of tile->grid_link->grid_limits against gridlink->restricted_extent</div>
<div><br>
</div>
<div>Shouldn't I be able to find such code?</div>
<div><br>
</div>
<div>Regards<br>
/julian<br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Fra:</b> thomas bonfort <thomas.bonfort@gmail.com><br>
<b>Sendt:</b> 22. juni 2018 10:12:45<br>
<b>Til:</b> Julian Hollingbery<br>
<b>Cc:</b> Rahkonen Jukka (MML); Ian Turton; mapserver-users@lists.osgeo.org<br>
<b>Emne:</b> Re: [mapserver-users] Wrong case of "TileOutOfRange" Error?</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">here is how the y=5 you are seeing is calculated:
<div><a href="https://github.com/mapserver/mapcache/blob/master/lib/service_wmts.c#L830">https://github.com/mapserver/mapcache/blob/master/lib/service_wmts.c#L830</a><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Fri, Jun 22, 2018 at 9:05 AM Julian Hollingbery <<a href="mailto:julian@northtech.dk">julian@northtech.dk</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div lang="DA">
<div class="x_m_732277491499408972WordSection1">
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Hi Ian and Jukka,<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Thanks for your response!<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">However, I’m pretty sure that the TileMatrix-parameter is good, since this works nicely:<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="x_MsoNormal">.. &TILEMATRIXSET=GSTutm32&TILEMATRIX=5&TILEROW=39&TILECOL=64&FORMAT=image%2Fpng<span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">(TileRow changed from 40 to 39).<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">After all, I copied the request from
<a href="http://xx.xx.xx.xx/servicename/demo/wmts" target="_blank">http://xx.xx.xx.xx/servicename/demo/wmts</a>, which, incidentally, shows the infamous pink tiles, if I pan to the outer edges of the tilegrid.<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Regards,<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">/julian<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<div>
<div style="border:none; border-top:solid #e1e1e1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Fra:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>>
<br>
<b>Sendt:</b> 21. juni 2018 17:58<br>
<b>Til:</b> Ian Turton <<a href="mailto:ijturton@gmail.com" target="_blank">ijturton@gmail.com</a>>; Julian Hollingbery <<a href="mailto:julian@northtech.dk" target="_blank">julian@northtech.dk</a>><br>
<b>Cc:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Emne:</b> Re: [mapserver-users] Wrong case of "TileOutOfRange" Error?<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<div lang="DA">
<div class="x_m_732277491499408972WordSection1">
<p class="x_MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">I don’t see a relevant part of GetCapabilities but I believe that the name of the tile matrix in MapCache based WMTS services is plain ”5” like
here<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><a href="https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts/1.0.0/WMTSCapabilities.xml" target="_blank"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts/1.0.0/WMTSCapabilities.xml</span></a><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">GetTile example<u></u><u></u></span></p>
<p class="x_MsoNormal"><a href="https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts?service=WMTS&request=GetTile&version=1.0.0&layer=maastokartta&style=default&format=image/png&TileMatrixSet=ETRS-TM35FIN&TileMatrix=6&TileRow=44&TileCol=27" target="_blank"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts?service=WMTS&request=GetTile&version=1.0.0&layer=maastokartta&style=default&format=image/png&TileMatrixSet=ETRS-TM35FIN&TileMatrix=6&TileRow=44&TileCol=27</span></a><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="x_MsoNormal"><b><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> mapserver-users [</span><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank"><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">mailto:mapserver-users-bounces@lists.osgeo.org</span></a><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">]
<b>Puolesta </b>Ian Turton<br>
<b>Lähetetty:</b> 21. kesäkuuta 2018 17:12<br>
<b>Vastaanottaja:</b> Julian Hollingbery <</span><a href="mailto:julian@northtech.dk" target="_blank"><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">julian@northtech.dk</span></a><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">><br>
<b>Kopio:</b> </span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif">mapserver-users@lists.osgeo.org</span></a><span lang="FI" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><br>
<b>Aihe:</b> Re: [mapserver-users] Wrong case of "TileOutOfRange" Error?<u></u><u></u></span></p>
<p class="x_MsoNormal"><span lang="FI"><u></u> <u></u></span></p>
<div>
<p class="x_MsoNormal"><span lang="FI">It looks like MapServer is mixing up tileset and tilerow (probably a cut and paste error in the error message) - I think the tile matrix should be GSTutm32:5 not just 5.<u></u><u></u></span></p>
<div>
<p class="x_MsoNormal"><span lang="FI"><u></u> <u></u></span></p>
</div>
<div>
<p class="x_MsoNormal"><span lang="FI">Ian<u></u><u></u></span></p>
</div>
</div>
<p class="x_MsoNormal"><span lang="FI"><u></u> <u></u></span></p>
</div>
</div>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote>
</div>
</div>
</body>
</html>