I want to extract the information for GetCapabilities-URL, GetMap-URL and GetFeatureInfoUrl, from a QGIS Tile Layer, using PyQGIS:

enter image description here

The only way I found yet, is:

for layer in QgsProject.instance().mapLayers().values():

and then use a htmlparser. But I'm pretty sure there is a easier way and I couldn't find it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.