[QGIS-Developer] XYZ Tile source url from TOC
matteo
matteo.ghetta at gmail.com
Fri Jun 7 03:21:00 PDT 2019
Hi guys,
if I don't get wrong Tile Layers are QgsRasterLayers objects.
Is there any method to grab from the loaded raster layer in the legend
the same url that is used to create the Tile in the Browser?
rl.source() gives the full url
'crs=EPSG:3857&format&type=xyz&url=http://a.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png&zmax=19&zmin=0'
Thanks for any hint
Matteo
More information about the QGIS-Developer
mailing list