In QGIS 3 does anyone know how to copy the geometry of one feature and paste it into another selected feature to just override the geometry? Within postgis I did this with an update, but I'm looking for a visual way in QGIS. Simply copy and paste. The only solution I found, is to insert the copy of a feature as a new entry, edit the missing attributes and delete the old one.
You can select the source feature and copy ("Edit > Copy Features" or "CTRL + C"), then, in edit mode with the destination feature selected, use the "Delete Part" tool and click on the geometry you want to replace. After that, with the feature still selected (you can have the attribute table open to be sure because your feature will no longer have a geometry), use the "Add Part" tool and paste the copied geometry.
You can use the method to replace some or all parts of multipart geometry or the geometry of single part geometries.
- Copy source geometry
- Select destination feature
- Delete Part
- Add Part