<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Oh I get it now, you want to change in place the geometry of a
      select object. I tend to use spatial SQL myself for this kind of
      stuff as it starts to sound like spatial analysis. You can also
      use the geoprocessing toolbox with the "edit in place" flag. But
      that would not be a manual click and point scenario.<br>
    </p>
    <p>What you describe could find its place in advanced digitizing
      toolbar and edit menu as two actions : - "paste as a geometry
      part" / "paste and replace existing geometry".</p>
    <p>This way you could add the new geometry, and remove the old one
      afterwards and in the meantime reconciliate eventually the two
      geometries. </p>
    <p>It is already something quite advanced. If you decide to start
      implementing this, I suggest you write a feature request where you
      describe the behavior of this edit tool and play with advanced
      editing options to see how you want it to behave when you have
      overlapping features, etc...</p>
    <p>Another way might be to experiment this as a python plugin as a
      proof of concept. <br>
    </p>
    <p>Thanks for raising this!</p>
    <p>Régis<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 29/11/2023 16:14, Tomas Straupis
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+f=8=oBT9_wfwOa1onwGhOg5w0jaztcicaGDHt0iGauFM2gcg@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">2023-11-29, tr, 15:53 Régis Haubourg via QGIS-Developer rašė:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Can you be more precise on your use case scenario ?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
  Let's say we have a layer L (PostgreSQL/PostGIS) with features A, B
and C with corresponding attribute values set.
  Now some external party sends us a shapefile S with an updated
geometry G which we want to apply to feature B.

  We want to:
  1. Select G in layer S and press Ctrl+C
  2. Select feature B in layer L (layer is in edit mode).
  3. Do "Paste geometry" which should change geometry of feature B but
leave all attribute values intact. This must be an update (not
delete/insert) operation for record B in database table, as database
would usually have different sequences, triggers with business logic
etc.

</pre>
    </blockquote>
    <div id="grammalecte_menu_main_button_shadow_host"
      style="width: 0px; height: 0px;"></div>
  </body>
</html>