<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Franklin Gothic Book";
        panose-1:2 11 5 3 2 1 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - förformaterad Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:SV;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Ballongtext Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.HTML-frformateradChar
        {mso-style-name:"HTML - förformaterad Char";
        mso-style-priority:99;
        mso-style-link:"HTML - förformaterad";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.E-postmall20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-postmall21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-postmall22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BallongtextChar
        {mso-style-name:"Ballongtext Char";
        mso-style-priority:99;
        mso-style-link:Ballongtext;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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 bgcolor="white" lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Yes. Found out that geowebcache currently only supports KVP. I there a possibility to configure the background layer as a WMS with a specific extent, tilesizes and resolutions? I the case the bounds
 and size of WMS tile matches the gridset the tile is served as a cached tile though it is WMS. In Geoserver.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Franklin Gothic Book","sans-serif";mso-fareast-language:SV">Karl-Magnus
</span></b><span style="font-size:10.0pt;font-family:"Franklin Gothic Book","sans-serif";mso-fareast-language:SV"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:SV">Från:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:SV"> Andreas
 Neumann [mailto:a.neumann@carto.net] <br>
<b>Skickat:</b> den 20 april 2017 19:02<br>
<b>Till:</b> Karl Magnus Jönsson<br>
<b>Ämne:</b> Re: [qgis-qwc2] Config wmts<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi Karl-Magnus,<o:p></o:p></p>
<p>There are two ways to access WTMS: KVP (key value pairs) and RESTFul. See f.e.
<a href="https://services.geo.zg.ch/tc/demo/">https://services.geo.zg.ch/tc/demo/</a><o:p></o:p></p>
<p>I was successful with the RESTFul way of accessing WMTS. Perhaps you tried with KVP?<o:p></o:p></p>
<p>Andreas<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 20.04.2017 13:47, Karl Magnus Jönsson wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><a name="T_Default_Reply"><span lang="EN-US" style="color:#1F497D">My requests from geoservers demo-page and QGIS against Geoserver (geowebcache) looks like this. Internal
</span></a><a href="url:s"><span lang="EN-US">url:s</span></a><span lang="EN-US" style="color:#1F497D">. But they work.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">QGIS:</span><o:p></o:p></p>
<p class="MsoNormal"><a href="http://sbkgeodata:8080/geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=geodata:turistkarta&STYLE=&FORMAT=image/png&TILEMATRIXSET=EPSG:3008ext&TILEMATRIX=EPSG:3008ext:2&TILEROW=12&TILECOL=19">http://sbkgeodata:8080/geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=geodata:turistkarta&STYLE=&FORMAT=image/png&TILEMATRIXSET=EPSG:3008ext&TILEMATRIX=EPSG:3008ext:2&TILEROW=12&TILECOL=19</a><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Geoserver Demo:</span><o:p></o:p></p>
<p class="MsoNormal"><a href="http://sbkgeodata:8080/geoserver/gwc/service/wmts?layer=geodata%3Aturistkarta&style&tilematrixset=EPSG%3A3008ext&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng8&TileMatrix=EPSG%3A3008ext%3A2&TileCol=16&TileRow=6">http://sbkgeodata:8080/geoserver/gwc/service/wmts?layer=geodata%3Aturistkarta&style&tilematrixset=EPSG%3A3008ext&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng8&TileMatrix=EPSG%3A3008ext%3A2&TileCol=16&TileRow=6</a><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">QWC2 demo:</span><o:p></o:p></p>
<p class="MsoNormal"><a href="https://wmts20.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/2056/18/16/8.jpeg">https://wmts20.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/2056/18/16/8.jpeg</a><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Is there different ways to request wmts tiles?</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt">Karl-Magnus </span></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:SV">Från:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:SV"> qgis-qwc2
 [<a href="mailto:qgis-qwc2-bounces@lists.osgeo.org">mailto:qgis-qwc2-bounces@lists.osgeo.org</a>]
<b>För </b>Sandro Mani<br>
<b>Skickat:</b> den 20 april 2017 13:10<br>
<b>Till:</b> <a href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a><br>
<b>Ämne:</b> Re: [qgis-qwc2] Config wmts</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hi<o:p></o:p></p>
<p>There are some WMTS exaples here in the demo app [1], you'll need to look at the WMTS capabilities of the WMTS service you want to use to find out the various parameter values.
<o:p></o:p></p>
<p>Sandro<o:p></o:p></p>
<p>[1] <a href="https://github.com/qgis/qwc2-demo-app/blob/master/themesConfig.json">
https://github.com/qgis/qwc2-demo-app/blob/master/themesConfig.json</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">On 20.04.2017 12:17, Karl Magnus Jönsson wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><a name="T_Default_New"><span lang="EN-US">Hi!</span></a><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Trying to add a wmts from GeoServer in my map. Is there an example of how to configure a wmts from GeoServer in themesConfig.json?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt">Karl-Magnus Jönsson</span></b><span style="font-size:10.0pt"> | Gis-Utvecklare<br>
Geografisk information<br>
Miljö- och samhällsbyggnadsförvaltningen<br>
Kristianstads kommun<br>
Besöksadress: Västra Storgatan 12<br>
Postadress: 291 80 Kristianstad<br>
Telefon: 044-135416 | Mobil: 0733-135416 </span><o:p></o:p></p>
<p class="MsoNormal"><a href="karl-magnus.jonsson@kristianstad.se"><span style="font-size:10.0pt">karl-magnus.jonsson@kristianstad.se</span></a><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><a href="http://www.kristianstad.se">www.kristianstad.se</a></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%"><span style="mso-fareast-language:SV"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>qgis-qwc2 mailing list<o:p></o:p></pre>
<pre><a href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:SV"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>qgis-qwc2 mailing list<o:p></o:p></pre>
<pre><a href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:SV"><o:p> </o:p></span></p>
</div>
</body>
</html>