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.

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".

This way you could add the new geometry, and remove the old one afterwards and in the meantime reconciliate eventually the two geometries.

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...

Another way might be to experiment this as a python plugin as a proof of concept.

Thanks for raising this!

Régis


On 29/11/2023 16:14, Tomas Straupis wrote:
2023-11-29, tr, 15:53 Régis Haubourg via QGIS-Developer rašė:
Can you be more precise on your use case scenario ?
   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.
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to