<div dir="ltr">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 <span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">GSTutm32:5 not just 5.</span><div><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Ian</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 21 Jun 2018 at 15:05, Julian Hollingbery <<a href="mailto:julian@northtech.dk">julian@northtech.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DA" link="#0563C1" vlink="#954F72">
<div class="m_6361489045201539422WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi list,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">we are using MapCache 1.6.1 as a WMTS and TMS server in front of a WMS, for the most part with success :-)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">However, a request like<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://xx.xx.xx.xx/servicename/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=layername&STYLE=default&TILEMATRIXSET=GSTutm32&TILEMATRIX=5&TILEROW=40&TILECOL=64&FORMAT=image%2Fpng" target="_blank">http://xx.xx.xx.xx/servicename/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=layername&STYLE=default&TILEMATRIXSET=GSTutm32&TILEMATRIX=5&TILEROW=40&TILECOL=64&FORMAT=image%2Fpng</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">returns<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><?xml version="1.0" encoding="UTF-8"?><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><ExceptionReport xmlns="<a href="http://www.opengis.net/ows/2.0" target="_blank">http://www.opengis.net/ows/2.0</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/2.0%20owsExceptionReport.xsd" target="_blank">http://www.opengis.net/ows/2.0
owsExceptionReport.xsd</a>" version="1.0.0" xml:lang="en"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><!-- tile y=5 not in [6,44[ --><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><Exception exceptionCode="TileOutOfRange" locator="TileRow"/><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></ExceptionReport><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">which puzzles me for two reasons:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">1) I did not request a tile with “y=5”<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">2) The GetCapabilities show me<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <Contents><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <Layer><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <ows:Title>layername</ows:Title><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <ows:Identifier>layername</ows:Identifier><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <Style isDefault="true"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <ows:Identifier>default</ows:Identifier><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">
</span></Style><u></u><u></u></p>
<p class="MsoNormal"> <Format>image/png</Format><u></u><u></u></p>
<p class="MsoNormal"> <TileMatrixSetLink><u></u><u></u></p>
<p class="MsoNormal"> <TileMatrixSet>GSTutm32</TileMatrixSet><u></u><u></u></p>
<p class="MsoNormal"> <TileMatrixSetLimits><u></u><u></u></p>
<p class="MsoNormal"> ...<u></u><u></u></p>
<p class="MsoNormal"> <TileMatrixLimits><u></u><u></u></p>
<p class="MsoNormal"> <TileMatrix>GSTutm32:5</TileMatrix><u></u><u></u></p>
<p class="MsoNormal"> <MinTileRow>6</MinTileRow><u></u><u></u></p>
<p class="MsoNormal"> <MaxTileRow>43</MaxTileRow><u></u><u></u></p>
<p class="MsoNormal">
<span lang="EN-US"><MinTileCol>19</MinTileCol><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <MaxTileCol>64</MaxTileCol><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </TileMatrixLimits><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">In the configuration file, I have:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><?xml version="1.0"?><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><mapcache xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <grid name="GSTutm32"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <metadata /><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <extent>120000 5900000 1000000 6500000</extent><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <srs>EPSG:25832</srs><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <units>m</units><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <size>256 256</size><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <resolutions>1638.4 819.2 409.6 204.8 102.4 51.2 25.6 12.8 6.4 3.2 1.6 0.8 0.4 0.2 0.1 0.05</resolutions><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </grid><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <source name="source_service" type="wms"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <getmap><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <params><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <FORMAT>image/png</FORMAT><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <LAYERS>wms_layername</LAYERS><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </params><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </getmap><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <http><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <url><a href="http://172.30.229.42/fcgi-bin/mapserv.fcgi?map=/mapserver/config/source_service.map%3c/url" target="_blank">http://172.30.229.42/fcgi-bin/mapserv.fcgi?map=/mapserver/config/source_service.map</url</a>><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </http><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </source><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <cache name="couchbase" type="memcache"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <server><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <host>yy.yy.yy.yy</host><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <port>11211</port><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </server><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </cache><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <tileset name="layername"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <source>source_service</source><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <cache>couchbase</cache><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <grid restricted_extent="440000 6048000 894000 6404000" use_wms_intermediate_resolutions="false">GSTutm32</grid><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span><format>PNG</format><u></u><u></u></p>
<p class="MsoNormal"> <metatile>5 5</metatile><u></u><u></u></p>
<p class="MsoNormal"> <metabuffer>10</metabuffer><u></u><u></u></p>
<p class="MsoNormal"> </tileset><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">...<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Am i missing something, or is this simply a bug in the handling of a <grid> with restricted_extent?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal">Best Regards,<u></u><u></u></p>
<p class="MsoNormal">/julian<u></u><u></u></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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Ian Turton<br></div>