Re: [Qgis-developer] Detect whether layer is from QGIS Server
Perfect - thank you so much for the help! Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Detect-whether-layer-is-from-QGIS-Server-tp5275824p5275883.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Detect whether layer is from QGIS Server
On Tue, Jul 12, 2016 at 10:31 AM, Tom Chadwinwrote: > Thanks - I'll try it. What do I detect in the response to know it's QGIS > Server? In fact, does someone have a publicly accessible QGIS Server I can > issue that request to? > > Thanks > > Tom > > I think that you could check that the server does not return an exception. If REQUEST=GetProjectSettings does not return an exception it means that it's QGIS. Example: QGIS: http://demo.qgis.org/cgi-bin/qgis_mapserv.fcgi?map=/web/demos/south_perth/project.qgs=WMS=GetProjectSettings Not QGIS: http://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/msautotest/world/world.map=WMS=GetProjectSettings -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Detect whether layer is from QGIS Server
Thanks - I'll try it. What do I detect in the response to know it's QGIS Server? In fact, does someone have a publicly accessible QGIS Server I can issue that request to? Thanks Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Detect-whether-layer-is-from-QGIS-Server-tp5275824p5275880.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Detect whether layer is from QGIS Server
On Tue, Jul 12, 2016 at 12:32 AM, Tom Chadwinwrote: > 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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Detect whether layer is from QGIS Server
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? -- 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@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer