[Qgis-developer] Detect whether layer is from QGIS Server
Alessandro Pasotti
apasotti at gmail.com
Tue Jul 12 00:03:12 PDT 2016
On Tue, Jul 12, 2016 at 12:32 AM, Tom Chadwin <tom.chadwin at nnpa.org.uk>
wrote:
> I need to detect whether a QGIS WMS layer is from QGIS Server, rather than
> another WMS server:
>
> https://github.com/tomchadwin/qgis2web/issues/306
>
> What's my best method? Search for "qgis_mapserv" in the layer's URL?
> Something else?
>
>
That's not robust, with a rewrite you can easily hide/alter that path.
I suggest you to rely on a WMS getProjectSettings call.
AFAIK that call is unique to QGIS Server.
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Detect-whether-layer-is-from-QGIS-Server-tp5275824.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160712/9e2cc9b9/attachment.html>
More information about the Qgis-developer
mailing list