Is it possible to open a specific WMS layer in QGIS directly by entering the whole URL of this WMS?
That is, without having to open a WMS connection first and selecting the layer in the tree.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityYes, you may do it with a few lines of python, see:
How to load a WMS layer using PyQGIS?
WMS layer in a QGIS 2.4 stand alone Python script
I would recommend testing in the python console in Q, if that works then you could create a simple Q plugin and include that logic for whatever layer(s) you may want to add in.
No
You have to give the endpoint URL to QGIS, then QGIS appends appropriate parameters to make the map appear.