<div dir="auto">Thanks for the feedback, that would be nice to add to the Qgis server doc ( copying Paul who is going to work on that).<div dir="auto">Cheers</div><div dir="auto">Regis</div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 8 oct. 2018 à 17:31, Radim Blazek <<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
very nice that performance test.<br>
I found that nginx was misconfigured an it was transferring unzipped<br>
data over the network. With nginx params:<br>
    gzip on;<br>
    gzip_types text/xml;<br>
    gzip_http_version 1.0;<br>
WFS is now only two times slower than direct connection to PostGIS.<br>
Sorry for false alarm.<br>
<br>
Radim<br>
<br>
On Mon, Oct 8, 2018 at 3:42 PM Régis Haubourg <<a href="mailto:regis.haubourg@gmail.com" target="_blank" rel="noreferrer">regis.haubourg@gmail.com</a>> wrote:<br>
><br>
> Hi Radim,<br>
> I have no idea why it is slower, but we should really improve the QGIS server WFS-T situation I think. Adding  scenario to the QGIS performance tests would be a good solution to track this and then seek for the bottlenecks:<br>
><br>
> <a href="http://test.qgis.org/perf_test/graffiti/" rel="noreferrer noreferrer" target="_blank">http://test.qgis.org/perf_test/graffiti/</a><br>
><br>
> Cheers<br>
> Régis<br>
><br>
> Le lun. 8 oct. 2018 à 15:27, Radim Blazek <<a href="mailto:radim.blazek@gmail.com" target="_blank" rel="noreferrer">radim.blazek@gmail.com</a>> a écrit :<br>
>><br>
>> Hi, thanks for information.<br>
>><br>
>> I tried QGIS <-> WFS-T <-> QGIS Server <-> PostGIS and initial read is<br>
>> 4-5 times slower than QGIS <-> PostGIS (QGIS 2.14). Any idea why it is<br>
>> so slow and if it can be improved?<br>
>><br>
>> Radim<br>
>><br>
>> On Fri, Oct 5, 2018 at 10:54 PM Olivier Dalang <<a href="mailto:olivier.dalang@gmail.com" target="_blank" rel="noreferrer">olivier.dalang@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi Radim,<br>
>> ><br>
>> > I didn't get this sorted in the end (ended just having the layer as read only in QGIS from postgis and users would do any modification from django admin).<br>
>> ><br>
>> > About a Django provider for QGIS : it is now possible to create python providers [1]. So creating a REST provider to consume a django rest framework endpoint may not be that hard anymore ? That would certainly be a great addition to QGIS !!<br>
>> ><br>
>> > And about a WFS-T app for Django : I don't know of any other effort than django-wfs, but I just saw there's an open PR with some a lot of changed including python 3 support, so maybe django-wfs is not as dead as it looks ? Still WFS-T would have to be added, and again not sure how hard this would be...<br>
>> ><br>
>> > Let us know how it goes !<br>
>> ><br>
>> > Cheers,<br>
>> ><br>
>> > Olivier<br>
>> ><br>
>> > [1] <a href="https://github.com/qgis/QGIS/pull/7012" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS/pull/7012</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > On Sat, Oct 6, 2018 at 4:24 AM Radim Blazek <<a href="mailto:radim.blazek@gmail.com" target="_blank" rel="noreferrer">radim.blazek@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >> we need the same, to be precise, we need two things, to allow editing<br>
>> >> of data stored in Django/PostGIS in QGIS over the network and let QGIS<br>
>> >> Server (WMS) to read data from Django, both using Django filters etc.<br>
>> >> If we manage to get data to QGIS from Django (and back), we can use<br>
>> >> QGIS Server and WFS-T for editing. So I am looking for something like<br>
>> >> Django provider for QGIS or WFS-T application for Django. Are you<br>
>> >> aware of something like that?<br>
>> >><br>
>> >> Olivier, what have you used in the end? [1] is not maintained and it<br>
>> >> does not support WFS-T.<br>
>> >><br>
>> >> Alessandro, in [2] I am missing data reading from Django models. It<br>
>> >> seems like the server is launched from python, but data flow goes<br>
>> >> through standard QGIS providers?<br>
>> >><br>
>> >> Marco, if I got it looking briefly into GeoNode code, they just run<br>
>> >> QGIS server, but they don't read data directly from Django models,<br>
>> >> right?<br>
>> >><br>
>> >> [1] <a href="https://github.com/vascop/django-wfs" rel="noreferrer noreferrer" target="_blank">https://github.com/vascop/django-wfs</a><br>
>> >> [2] <a href="http://www.itopen.it/qgis-server-binding-news/lang-pref/en/" rel="noreferrer noreferrer" target="_blank">http://www.itopen.it/qgis-server-binding-news/lang-pref/en/</a><br>
>> >><br>
>> >> Radim<br>
>> >><br>
>> >> On Fri, Mar 24, 2017 at 1:56 PM Marco Bernasocchi <<a href="mailto:marco@opengis.ch" target="_blank" rel="noreferrer">marco@opengis.ch</a>> wrote:<br>
>> >> ><br>
>> >> > Hi Olivier<br>
>> >> > Kartoza has been working on having geonode server running smoothly using<br>
>> >> > a qgis server in the background.<br>
>> >> ><br>
>> >> > have a look at<br>
>> >> > <a href="https://www.youtube.com/watch?v=GzX4byPkV3E" rel="noreferrer noreferrer" target="_blank">https://www.youtube.com/watch?v=GzX4byPkV3E</a><br>
>> >> > <a href="http://osgeo-org.1560.x6.nabble.com/New-Geonode-GeoSAFE-and-QGIS-work-td5303864.html" rel="noreferrer noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/New-Geonode-GeoSAFE-and-QGIS-work-td5303864.html</a><br>
>> >> ><br>
>> >> > cheers<br>
>> >> > Marco<br>
>> >> ><br>
>> >> > On 24.03.2017 13:10, Olivier Dalang wrote:<br>
>> >> > > Dear List,<br>
>> >> > ><br>
>> >> > > Does anybody here have some experience with making QGIS work with<br>
>> >> > > (Geo)Django ?<br>
>> >> > ><br>
>> >> > > I would love to be able to make them communicate, as QGIS is the<br>
>> >> > > interface of choice to do complex work on geometries and Django is<br>
>> >> > > perfect to quickly setup a complete endpoint with user management, model<br>
>> >> > > logic and web administration interface.<br>
>> >> > ><br>
>> >> > > I see two approches :<br>
>> >> > > - Using Django REST framework to create a REST endpoint - but is there a<br>
>> >> > > way to consume REST endpoints in QGIS ?<br>
>> >> > > - Developing a WFST module for Django, for which there seem to be some<br>
>> >> > > work done [1] for the non-transactionnal part.<br>
>> >> > ><br>
>> >> > > I just wanted to ask before reinventing the wheel !<br>
>> >> > ><br>
>> >> > > Bests,<br>
>> >> > ><br>
>> >> > > Olivier<br>
>> _______________________________________________<br>
>> QGIS-Developer mailing list<br>
>> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>