<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi All,</p>
    <p>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).</p>
    <p>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.</p>
    <p>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].</p>
    <p>The suite comunicates with Webgis Client (G3W-CLIENT) with custom
      api built with Django Rest Framework.<br>
    </p>
    <p>I hope this can be usefull.</p>
    <p>I'm thinking again on django model on fly worflow and his memory
      implication, comments and suggestions are welcome.</p>
    <p>Have a good weekend.</p>
    <p>Ciao</p>
    <p>W<br>
    </p>
    <p><br>
    </p>
    <p>[1] <a class="moz-txt-link-freetext" href="https://g3wsuite.gis3w.it/">https://g3wsuite.gis3w.it/</a><br>
    </p>
    <p>[2] <a class="moz-txt-link-freetext" href="https://github.com/g3w-suite">https://github.com/g3w-suite</a><br>
    </p>
    [3]
<a class="moz-txt-link-freetext" href="https://github.com/g3w-suite/g3w-admin/blob/master/g3w-admin/core/utils/models.py">https://github.com/g3w-suite/g3w-admin/blob/master/g3w-admin/core/utils/models.py</a><br>
    <br>
    <div class="moz-cite-prefix">Il 05/10/2018 22:54, Olivier Dalang ha
      scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAExk7p2DHZ7Js=iG+xO+v44Q2hBHd7ueKogj=FzgSqV3DC5SMQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div>Hi Radim,</div>
              <div><br>
              </div>
              <div>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).</div>
              <div><br>
              </div>
              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>
            </div>
            <div dir="ltr"><br>
            </div>
            <div>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>
            </div>
            <div><br>
            </div>
            Let us know how it goes !<br>
          </div>
          <div dir="ltr"><br>
          </div>
          <div>Cheers,</div>
          <div><br>
          </div>
          <div>Olivier<br>
          </div>
          <div dir="ltr">
            <div dir="ltr">
              <div><br>
              </div>
              <div>[1] <a href="https://github.com/qgis/QGIS/pull/7012"
                  moz-do-not-send="true">https://github.com/qgis/QGIS/pull/7012</a><br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Sat, Oct 6, 2018 at 4:24 AM Radim Blazek <<a
            href="mailto:radim.blazek@gmail.com" moz-do-not-send="true">radim.blazek@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">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" target="_blank" moz-do-not-send="true">https://github.com/vascop/django-wfs</a><br>
          [2] <a
            href="http://www.itopen.it/qgis-server-binding-news/lang-pref/en/"
            rel="noreferrer" target="_blank" moz-do-not-send="true">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"
            moz-do-not-send="true">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" target="_blank" moz-do-not-send="true">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" target="_blank" moz-do-not-send="true">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>
        </blockquote>
      </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>
    <div class="moz-signature">-- <br>
      <p style="font-size:12px;">
        Walter Lorenzetti phD<br>
        email: <a class="moz-txt-link-abbreviated" href="mailto:lorenzetti@gis3w.it">lorenzetti@gis3w.it</a><br>
        skype: aiki74<br>
        twitter:<a href="https://twitter.com/w_lorenzetti">w_lorenzetti</a><br>
        g+:<a href="https://plus.google.com/117055903318462447104/">aiki74</a><br>
        Tel/Cell: (+39) 347-6597931<br>
        Viale Verdi 24 - 51016 Montecatini Terme (PT)
        <br>
        <a
          href="http://gis3w.it/it/calendario-corsi-software-geografici">Nuovi
          corsi QGIS e GFOSS</a>
      </p>
    </div>
  </body>
</html>