[GIS] How to copy features from a vector layer to another vector layer with only correspondent attributes in QGIS

qgis

I have two vector layers:

A first one with all cadastral parcels of a region. This layer has several attributes, it's only the geometry and 3 of the attributes I'm intrested in.

My second layer is a selection of parcels from the same region. This layer has 7 attributes. The first 3 attributes are identical to 3 attributes from the first layer with all cadastral parcels. The 4 other attributes are filled in afterwards.

How can I copy a parcel from the first layer to the second one, only with the geometry and matching attributes in the right field of the attribute table?

Best Answer

When copying features from one layer to another, attributes are copied and pasted in the same order they appeared in the original attribute table. Attribute/column names are not considered.

This is how you could make it work:

Your original parcel layer should be restructured so that the the 3 attributes you care about are first in the attribute table.

If you then copy features from the original layer to the target layer, all attributes will still be copied but at least your attribute values of interest will end up in the correct columns. The rest can be deleted or written over.

Related Question