<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:663511143;
        mso-list-type:hybrid;
        mso-list-template-ids:-1147498882 -92004554 68354051 68354053 68354049 68354051 68354053 68354049 68354051 68354053;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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="NL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I submitted an issue (</span><a href="https://github.com/qgis/QGIS/issues/45460"><span lang="EN-GB">https://github.com/qgis/QGIS/issues/45460</span></a><span lang="EN-GB">) on the issue tracker which is about QGIS not
 respecting the WMTS capabilities tilematrixset.  @gioman On Github suggested to write to the mailing list. Considering it is a usability issue the developers mailing list seemed appropriate.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><br>
I do not think the current behaviour of QGIS is necessarily a bug, it might work as intended. But it does not  match my expectation of how it ideally should work.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">So the issue I ran into is the following:<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have a WMTS which only serves tiles for specific zoomlevels. So in the WMTS capabilities document we have a tilematrixset that starts from zoomlevel
</span><code><span lang="EN-GB" style="font-size:10.0pt">05</span></code><span lang="EN-GB"> (zoomlevels/tilematrices
</span><code><span lang="EN-GB" style="font-size:10.0pt">00</span></code><span lang="EN-GB"> -
</span><code><span lang="EN-GB" style="font-size:10.0pt">04</span></code><span lang="EN-GB"> are omitted), see the github issue for the full capabilities document to reproduce:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL"><TileMatrixSet><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">  <ows:Identifier>EPSG:28992</ows:Identifier><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">  <ows:SupportedCRS>urn:ogc:def:crs:EPSG::28992</ows:SupportedCRS><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">  <TileMatrix><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <ows:Identifier>05</ows:Identifier><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <ScaleDenominator>384000.0</ScaleDenominator><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <TopLeftCorner>-285401.92 903401.92</TopLeftCorner><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <TileWidth>256</TileWidth><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <TileHeight>256</TileHeight><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <MatrixWidth>32</MatrixWidth><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <MatrixHeight>32</MatrixHeight><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">  </TileMatrix><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">  <TileMatrix><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL">    <ows:Identifier>06</ows:Identifier><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">When adding this WMTS to the map in QGIS, QGIS zooms to the bounding box advertised in the capabilities (which corresponds to the extent of the Netherlands, and
</span><code><span lang="EN-GB" style="font-size:10.0pt">z0</span></code><span lang="EN-GB"> in the Dutch national tiling scheme) and starts immediately loading tiles from the first available zoom level.
<br>
<br>
While I would expect QGIS to respect the service capabilities <em><span style="font-family:"Calibri",sans-serif">by default</span></em> and only show tiles starting from the scale of the first available zoomlevel (which in this case is z05 which corresponds
 to a scale of </span><code><span lang="EN-GB" style="font-size:10.0pt">1:384000</span></code><span lang="EN-GB">).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><a href="https://imgur.com/a/d31pEgU">https://imgur.com/a/d31pEgU</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">My expectation is somewhat biased, since as a servicerpovider I would like to be in control of how our services are rendered in QGIS. The current situation does not allow for this, therefore I would like to propose the
 following :<br>
<br>
QGIS by default respects  the visibility of the WMTS layer as defined by the available tilematrixsets in the cap doc (I suppose this should be the case for all tiled resources, that make use of tilematrixsets). There are options on these layers to override
 this behaviour for both<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-GB"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span lang="EN-GB">Lowerbound zoomlevels, configure from what zoomlevel tiles will be “underzoomed”<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-GB"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span lang="EN-GB">Upperbound zoomlevels, configure till what zoomlevel tilles will be “overzoomed”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">So I am curious what the community thinks, looking forward to the discussion.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:#212121;mso-fareast-language:NL">Met vriendelijke groet,</span><span lang="EN-GB" style="color:#201F1E;mso-fareast-language:NL"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:#212121;mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:#212121;mso-fareast-language:NL">Anton Bakker</span><span lang="EN-GB" style="color:#201F1E;mso-fareast-language:NL"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-GB" style="color:#201F1E;mso-fareast-language:NL"><o:p> </o:p></span></p>
</div>
<br>
<br>
<font size="2">Disclaimer:<br>
De inhoud van deze e-mail is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n).<br>
Gebruik, openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan.<br>
Op al onze producten en diensten zijn onze algemene leveringsvoorwaarden van toepassing<br>
[https://www.kadaster.nl/algemene-leveringsvoorwaarden].<br>
<br>
Disclaimer:<br>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.<br>
If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.<br>
Our general terms and conditions of delivery apply to all our products and services<br>
[https://www.kadaster.com/general-terms-and-conditions]. <br>
</font>
</body>
</html>