[QGIS-Developer] [Qgis-developer] QGIS <-> Django
Walter Lorenzetti
lorenzetti at gis3w.it
Mon Oct 8 06:42:46 PDT 2018
yes, only from webclient.
W
Il 08/10/2018 15:14, Radim Blazek ha scritto:
> Hi,
> so you don't read/write features from QGIS, only from Web client, right?
>
> Radim
> On Sat, Oct 6, 2018 at 5:39 PM Walter Lorenzetti <lorenzetti at gis3w.it> wrote:
>> Hi All,
>>
>> at GIS3W we developed a suite based on Django for QGIS server [1], the code in Open and on Github [2] (main app is G3W-ADMIN).
>>
>> The suite parse QGIS project file(at the moment is only for QGIS 2.18) and stores layer data in to db, alse connection string informations. With the layer connection we build a Django model on fly for to get data directly from db ora to write on it.
>>
>> We developed a 'editing' module but for now is not open, but the core for build Django model on fly is in the open code [3].
>>
>> The suite comunicates with Webgis Client (G3W-CLIENT) with custom api built with Django Rest Framework.
>>
>> I hope this can be usefull.
>>
>> I'm thinking again on django model on fly worflow and his memory implication, comments and suggestions are welcome.
>>
>> Have a good weekend.
>>
>> Ciao
>>
>> W
>>
>>
>> [1] https://g3wsuite.gis3w.it/
>>
>> [2] https://github.com/g3w-suite
>>
>> [3] https://github.com/g3w-suite/g3w-admin/blob/master/g3w-admin/core/utils/models.py
>>
>> Il 05/10/2018 22:54, Olivier Dalang ha scritto:
>>
>> Hi Radim,
>>
>> 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).
>>
>> 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 !!
>>
>> 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...
>>
>> Let us know how it goes !
>>
>> Cheers,
>>
>> Olivier
>>
>> [1] https://github.com/qgis/QGIS/pull/7012
>>
>>
>>
>> On Sat, Oct 6, 2018 at 4:24 AM Radim Blazek <radim.blazek at gmail.com> wrote:
>>> Hi,
>>> we need the same, to be precise, we need two things, to allow editing
>>> of data stored in Django/PostGIS in QGIS over the network and let QGIS
>>> Server (WMS) to read data from Django, both using Django filters etc.
>>> If we manage to get data to QGIS from Django (and back), we can use
>>> QGIS Server and WFS-T for editing. So I am looking for something like
>>> Django provider for QGIS or WFS-T application for Django. Are you
>>> aware of something like that?
>>>
>>> Olivier, what have you used in the end? [1] is not maintained and it
>>> does not support WFS-T.
>>>
>>> Alessandro, in [2] I am missing data reading from Django models. It
>>> seems like the server is launched from python, but data flow goes
>>> through standard QGIS providers?
>>>
>>> Marco, if I got it looking briefly into GeoNode code, they just run
>>> QGIS server, but they don't read data directly from Django models,
>>> right?
>>>
>>> [1] https://github.com/vascop/django-wfs
>>> [2] http://www.itopen.it/qgis-server-binding-news/lang-pref/en/
>>>
>>> Radim
>>>
>>> On Fri, Mar 24, 2017 at 1:56 PM Marco Bernasocchi <marco at opengis.ch> wrote:
>>>> Hi Olivier
>>>> Kartoza has been working on having geonode server running smoothly using
>>>> a qgis server in the background.
>>>>
>>>> have a look at
>>>> https://www.youtube.com/watch?v=GzX4byPkV3E
>>>> http://osgeo-org.1560.x6.nabble.com/New-Geonode-GeoSAFE-and-QGIS-work-td5303864.html
>>>>
>>>> cheers
>>>> Marco
>>>>
>>>> On 24.03.2017 13:10, Olivier Dalang wrote:
>>>>> Dear List,
>>>>>
>>>>> Does anybody here have some experience with making QGIS work with
>>>>> (Geo)Django ?
>>>>>
>>>>> I would love to be able to make them communicate, as QGIS is the
>>>>> interface of choice to do complex work on geometries and Django is
>>>>> perfect to quickly setup a complete endpoint with user management, model
>>>>> logic and web administration interface.
>>>>>
>>>>> I see two approches :
>>>>> - Using Django REST framework to create a REST endpoint - but is there a
>>>>> way to consume REST endpoints in QGIS ?
>>>>> - Developing a WFST module for Django, for which there seem to be some
>>>>> work done [1] for the non-transactionnal part.
>>>>>
>>>>> I just wanted to ask before reinventing the wheel !
>>>>>
>>>>> Bests,
>>>>>
>>>>> Olivier
>>
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>> --
>>
>> Walter Lorenzetti phD
>> email: lorenzetti at gis3w.it
>> skype: aiki74
>> twitter:w_lorenzetti
>> g+:aiki74
>> Tel/Cell: (+39) 347-6597931
>> Viale Verdi 24 - 51016 Montecatini Terme (PT)
>> Nuovi corsi QGIS e GFOSS
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Walter Lorenzetti phD
email: lorenzetti at gis3w.it
skype: aiki74
twitter:w_lorenzetti <https://twitter.com/w_lorenzetti>
g+:aiki74 <https://plus.google.com/117055903318462447104/>
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)
Nuovi corsi QGIS e GFOSS
<http://gis3w.it/it/calendario-corsi-software-geografici>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181008/16007ad1/attachment-0001.html>
More information about the QGIS-Developer
mailing list