[OWSLib-devel] Support for QGIS Server GetProjectSettings

Jorge Gustavo Rocha jgr at geomaster.pt
Sat Oct 19 12:15:48 PDT 2019


Hi,

This is my first port to this mailing list. I have to start it with a
big thank you for all OWSLib contributors. This lib is awesome.

I would like to parse QGIS Server GetProjectSettings requests, which is
quite similar to the GetCapabilities. GetProjectSettings adds more
details about the layers, available print layouts and layer order (like
this [1]).

1) Which is the OWSLib policy about such non standard requests? Are they
welcome? Can we add support for these kind of requests?

2) Parsing GetProjectSettings documents is similar to the
GetCapabilities. I think we just need to change the ContentMetadata
class. In my OWSLib fork [2], I've created a completely new wmsqgis.py
instance (clone of wms130.py) with these small changes on
ContentMetadata. If the answer to question 1) allows support for
GetProjectSetttings, what would be the best approach to include it in
the library? Enhance wms130.py or create a completely new wmsqgis.py?

I'm using it with:

wms = wmsqgis.WebMapService_QGIS(url +
"&service=WMS&request=GetProjectSettings&version=1.3.0", version='1.3.0')

Calling:

wms = WebMapService(url, version='1.3.0')

will replace the request=GetProjectSettings with the expected and
standard request=GetCapabilities.

Comments are welcome.

Best regards,

Jorge Gustavo

[1] https://gist.github.com/jgrocha/0bc7c393c1fb32c8906515ea5c336386

[2]
https://github.com/jgrocha/OWSLib/commit/1570a487ba22dac2929f067b4d22c136c261ffea

-- 
Email Signature
Logo <https://www.geomaster.pt> 	
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*jgr at geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/owslib-devel/attachments/20191019/9479b30d/attachment.html>


More information about the OWSLib-devel mailing list