[Qgis-user] Combing Vector Layers - With Attributes

Kirk Schmidt kirk at nortekresources.com
Fri Mar 12 07:13:11 PST 2021


Hi Springer

You could try joining the databases using a common field assuming the 
second one does not have new point features.  However, I expect you are 
adding new point features.

In that case, I usually write a little python script to generate a new 
set of features in the update layer that matches those of the master 
layer.  I then recalculate the values of the new features before 
dropping the initial set of fields. You can use Graphical Modeler to 
generate a model and access through the Processing Toolbox> Models Group.

If you send me to sample shapefiles, I can put it together if you are 
not familiar with the Graphical Modeler.

Kirk Schmidt

On 3/12/2021 4:35 AM, Springfield Harrison wrote:
> Hello All,
>
> I have a master database (point shapefile) of trees to which I need to 
> add new records frequently.  The two files have different (but 
> similar) attribute lists.  I need to combine them and add the new 
> attributes into the appropriate SHP database columns.
>
> Copying and pasting records from the new file into the master list 
> does work but if the fields are not identical, no attributes are 
> brought into the master file.
>
> Is there a way to import the new records into their corresponding 
> fields in the master file?
>
> I've searched for help on this to no avail.  Manifold GIS handles this 
> very well, setting up a field matching dialogue but I would prefer to 
> keep the process within QGIS.
>
> Thanks very much for any ideas . . . .
>
> -----
> Cheers, Springfield Harrison
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Kirk Schmidt, MScF, BScF, RPF
General Manager
Nortek Resource Solutions Inc.
RR # 1
Thorburn, NS
B0K 1W0
Tel (902) 922.3607
Email: kirk at nortekresources.com
Web: www.nortekresources.com



More information about the Qgis-user mailing list