<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
It seems that the QGIS refactoring is complete!<br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/qgis3.0_api/issues/57">https://github.com/qgis/qgis3.0_api/issues/57</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/pull/4824">https://github.com/qgis/QGIS/pull/4824</a><br>
<br>
You can use QGIS Server like this in Python<br>
<br>
from qgis.server import QgsServer, QgsServerRequest,
QgsBufferServerRequest, QgsBufferServerResponse<br>
<br>
server = QgsServer()<br>
<br>
qs = "?" + "&".join(["%s=%s" % i for i in list({<br>
"MAP": '/tmp/qgis_project.qgs',<br>
"SERVICE": "WFS",<br>
"VERSION": "1.0.0",<br>
"REQUEST": "GetCapabilities"<br>
}.items())])<br>
requestMethod = QgsServerRequest.GetMethod<br>
headers = {}<br>
data = '' #can be the xml request for requestMethod =
QgsServerRequest.PostMethod<br>
<br>
request = QgsBufferServerRequest(qs, requestMethod, headers, data)<br>
response = QgsBufferServerResponse()<br>
server.handleRequest(request, response)<br>
<br>
headers = []<br>
rh = response.headers()<br>
rk = sorted(rh.keys())<br>
for k in rk:<br>
headers.append(("%s: %s" % (k, rh[k])).encode('utf-8'))<br>
<br>
body = bytes(response.body())<br>
<br>
Now QGIS Server needs somes enhancement and cleanup.<br>
<br>
René-Luc D'Hont<br>
3Liz<br>
<br>
<div class="moz-cite-prefix">Le 04/10/2017 à 13:23, Régis Haubourg a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CABgOYCcBiNZy9wiDPbaDPKhsh0TVDVoGcOeYyX2_OOxYGCiAww@mail.gmail.com">
<div dir="ltr">Hi
<div><br>
</div>
<div>Yes, refactoring is now complete! see : <a
href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74#issuecomment-334123595"
moz-do-not-send="true">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74#issuecomment-334123595</a></div>
<div><br>
</div>
<div>Anita, I'll draft an article tonight if you still agree to
review it, that would be great!</div>
<div><br>
</div>
<div>Régis<br>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-10-03 14:25 GMT+02:00 Anita Graser
<span dir="ltr"><<a href="mailto:anitagraser@gmx.at"
target="_blank" moz-do-not-send="true">anitagraser@gmx.at</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"><span class="">On Tue, Oct 3,
2017 at 11:19 AM, Régis Haubourg <span dir="ltr"><<a
href="mailto:regis.haubourg@gmail.com"
target="_blank" moz-do-not-send="true">regis.haubourg@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Etienne,
<div><br>
</div>
<div>from my point of view, this is the perfect
time to start stressing QGIS server 3! We just
discussed bout starting working with it this
morning on a new project. </div>
<div> </div>
<div>Maybe Alessandro and René-Luc can tell us
more about the plugin side. </div>
<div><br>
</div>
<div>Paul is currently fixing issues raised by
the OGC test engines. Richard, could you find
some time to expose them on a public url? </div>
<div><br>
</div>
</div>
</blockquote>
<div><br>
</div>
</span>
<div>
<div class="gmail_default" style="font-size:small">What
would you think about publishing a QGIS Server
update on <a href="http://blog.qgis.org"
target="_blank" moz-do-not-send="true">blog.qgis.org</a>
once the latest information has been gathered? I'd
like to see Server presented and advertised more
widely.</div>
<br>
</div>
<div class="gmail_default" style="font-size:small">I'd
be glad to help write the post if someone can help
with the necessary insights.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Regards,</div>
<div class="gmail_default" style="font-size:small">Anita</div>
<div><br>
</div>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>