On Tue, Jul 12, 2016 at 12:32 AM, Tom Chadwin <[email protected]> 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 > [email protected] > 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
_______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
