<div dir="ltr">On Tue, Jul 12, 2016 at 12:32 AM, Tom Chadwin <span dir="ltr"><<a href="mailto:tom.chadwin@nnpa.org.uk" target="_blank">tom.chadwin@nnpa.org.uk</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to detect whether a QGIS WMS layer is from QGIS Server, rather than<br>
another WMS server:<br>
<br>
<a href="https://github.com/tomchadwin/qgis2web/issues/306" rel="noreferrer" target="_blank">https://github.com/tomchadwin/qgis2web/issues/306</a><br>
<br>
What's my best method? Search for "qgis_mapserv" in the layer's URL?<br>
Something else?<br>
<br></blockquote><div><br></div><div>That's not robust, with a rewrite you can easily hide/alter that path.<br><br></div><div>I suggest you to rely on a WMS getProjectSettings call.<br><br></div><div>AFAIK that call is unique to QGIS Server.<br><br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Detect-whether-layer-is-from-QGIS-Server-tp5275824.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Detect-whether-layer-is-from-QGIS-Server-tp5275824.html</a><br>
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>