[qgis-qwc2] Config wmts

Andreas Neumann a.neumann at carto.net
Thu Apr 20 03:59:37 PDT 2017


Hi,

Here are my configs - not sure if all parameters are really needed - but 
they don't hurt. It is compatible with MapProxy WMTS.

At the bottom of file 
https://github.com/qgis/qwc2-demo-app/blob/master/themesConfig.json you 
can also find a WMTS configuration.

---------------------------------------

     "backgroundLayers": [
       {
         "name": "zg.orthofoto",
         "title": "Orthofoto",
         "attribution": "Kanton Zug & Swisstopo",
         "attributionUrl": "https://www.swisstopo.ch/",
         "type": "wmts",
         "url": 
"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.orthofoto/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
         "tileMatrixSet": "zg",
         "tileMatrixPrefix": "",
         "thumbnail": "Orthofotos.jpg",
         "projection": "EPSG:2056",
         "resolutions": 
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],
         "originX": 2670000.0,
         "originY": 1235000.0,
         "tileSize": [512,512]
       },
       {
         "name": "zg.grundbuchplan-grau",
         "title": "Grundbuchplan",
         "type": "wmts",
         "url": 
"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.grundbuchplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
         "tileMatrixSet": "zg",
         "tileMatrixPrefix": "",
         "thumbnail": "GrundbuchplanSW.png",
         "projection": "EPSG:2056",
         "resolutions": 
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],
         "originX": 2670000.0,
         "originY": 1235000.0,
         "tileSize": [512,512]
       },
       {
         "name": "zg.basisplan-grau",
         "title": "Basisplan Graustufen",
         "type": "wmts",
         "url": 
"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.basisplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
         "tileMatrixSet": "zg",
         "tileMatrixPrefix": "",
         "thumbnail": "BasisplanSW.png",
         "projection": "EPSG:2056",
         "resolutions": 
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],
         "originX": 2670000.0,
         "originY": 1235000.0,
         "tileSize": [512,512]
       }
     ]
   }

----------------------------------------

Hope it helps and greetings,
Andreas

On 20.04.2017 12:17, Karl Magnus Jönsson wrote:
>
> Hi!
>
> 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?
>
> *Karl-Magnus Jönsson*| Gis-Utvecklare
> Geografisk information
> Miljö- och samhällsbyggnadsförvaltningen
> Kristianstads kommun
> Besöksadress: Västra Storgatan 12
> Postadress: 291 80 Kristianstad
> Telefon: 044-135416 | Mobil: 0733-135416
>
> karl-magnus.jonsson at kristianstad.se
>
> www.kristianstad.se
>
>
>
> _______________________________________________
> qgis-qwc2 mailing list
> qgis-qwc2 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20170420/810545e6/attachment.html>


More information about the qgis-qwc2 mailing list