[Qgis-developer] API: how to get URL of WMS layer if different to layer.source()
Jürgen E. Fischer
jef at norbit.de
Mon Mar 27 03:35:38 PDT 2017
Hi Tom,
On Thu, 23. Mar 2017 at 04:02:46 -0700, Tom Chadwin wrote:
> So my question is, can I retrieve that second URL via the QGIS API? How does
> QGIS do it itself?
It parses the capabilities and uses the url advertices for GetMap requests -
and we don't have an API to retrieve provider internals.
There also is an option to ignore that url and form the GetMap request using
the original URL and ignore what GetCapabilities reports. Not useful in this
case - but something to consider for others.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
QGIS release manager (PSC) Germany IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170327/eaa793c6/attachment.sig>
More information about the Qgis-developer
mailing list