<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sunil<br>
    <br>
    The code for WFS editing (and also for reading) is in the WFS
    provider, the plugin is only for the GUI.<br>
    Edits are sent in the 4 requests because those are the basic edit
    operations of the QGIS vector provider interface. So each data
    provider class implements addFeatures(), deleteFeatures(), etc. if
    it supports that operation. QGIS itself does not have a mechanism to
    support transaction over multiple edit operations.<br>
    <br>
    Ideally, there would be methods like startTransaction(),
    commitTransaction(), discardTransaction() in the provider interface.
    Such methods would allow the WFS provider to send everything in a
    single transaction (and the methods could be ignored by other
    datasources without transaction support). <br>
    <br>
    Maybe it would also be useful to send edits in a single transaction
    for PostGIS edits?<br>
    <br>
    &gt;Please have a look to git - work was done recently by Marco
    Hugentobler and Bill Williamson.<br>
    <br>
    This was about improving support for WFS filters and for incremental
    reading of features (not about editing).<br>
    <br>
    <br>
    Regards,<br>
    Marco<br>
    <br>
    On 21.02.2012 04:08, Sunil Padda wrote:
    <blockquote cite="mid:4F430AC9.6020503@yahoo-inc.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi,<br>
      <br>
      We are exposing some spatial data using GeoServer WFS. This data
      is being rendered and edited using QGIS. We ran a small
      packet-capture test to see how are transactions handled. The
      observations were as below:<br>
      <ul>
        <li>4 separate requests were sent to WFS server</li>
        <li>The 4 requests have no common handle/identifier to signal
          they are part of the same transaction<br>
        </li>
        <li>The requests are for:</li>
        <ul>
          <li>Update Attributes for all features where attributes were
            changed<br>
          </li>
          <li>Insert new features</li>
          <li>Update geometry for all features where geometry were
            changed</li>
          <li>Delete features</li>
        </ul>
        <li>WFS specification for Transaction operation supports
          combination of Update, Insert and Delete as part of a single
          request</li>
      </ul>
      <p>Are our inferences correct? If so, can the WFS plugin be
        customized to send all changes in a single Transaction request?<br>
      </p>
      <p>Thanks,<br>
        Sunil<br>
      </p>
      <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>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Marco Hugentobler
Sourcepole -  Linux &amp; Open Source Solutions
Churerstrasse 22, CH-8808 Pf&auml;ffikon SZ, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee</pre>
  </body>
</html>