I am trying to add tiles from a GeoServer instance (using GeoWebCache) as an XYZ layer to a QGIS project.
The demo map on the server is here:
https://gis.lmi.is/geoserver/gwc/demo/LMI_Kort?gridSet=EPSG:3857&format=image/png
There are at least two URLS where I can access tiles individually:
- https://gis.lmi.is/geoserver/gwc/service/wmts?layer=LMI_Kort&style=default&tilematrixset=EPSG%3A3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=9&TileCol=299&TileRow=408
- https://gis.lmi.is/geoserver/gwc/service/wmts/rest/LMI_Kort/EPSG:3857/9/408/299?format=image%2Fpng
The server also provides a TMS endpoint: https://gis.lmi.is/geoserver/gwc/service/tms/1.0.0
I have tried variations of each of those as XYZ sources in QGIS, substituting {z}, {x} and {y} in the place of 9, 408 and 299. I have also tried {-y}, to see if that works. The projection for the project is 3857. In all cases, I can add the layer to QGIS but nothing happens on the map canvas.
What is the correct connection string to use?
Note: I am able to add the layer as WMTS, but there are issues with the rendering. I wanted to see if XYZ tiles would be better. See Image quality and aliasing effects in GeoWebCache WMTS tiles in QGIS for details.