TransWikia.com

Data matching between 2 layers which do not overlap

Geographic Information Systems Asked on July 2, 2021

I would like to know how a vector layer can takes attributes of a field, of another vector layer which is not overlapping.

For example, there are 2 vector layers, test_1 (2 records A,B) and test_2 (3 records 1,2,3), and i should have as output, the layer test_1 with the same route, but composed/separated by 3 records as test_2, with the additional field ID (1,2,3) moved to the attribute table of test_1.

This geometry process should be as precise as possible.
Any suggestions, QGIS geoprocessing tools?

enter image description hereenter image description here
enter image description here

enter image description here
enter image description hereenter image description here


Thank You for the reply! Using “Join Attributes by Nearest” it doesn’t work because the records continue to begins and ends in the same points of Test_1. I should have Test_1 divided in 3 records, for example at the transects of Test_2; with 1,2,3 in the attribute table. Look at the pic.

enter image description here

I’m thinking to use this flow (“Transect” of Test_2 -> “Split by lines” of Test_1 from transect -> “Join Attributes by Nearest” -> “Group geometries” of Test_1 from ID), but this is not accurate when a meet an intersection of lines because the transects create much confusion. Thank you!

One Answer

You should use the "Join Attributes by Nearest" tool from the processing toolbox. As you can see on the picture you will need two import layers set a maximum nearest neighbor and if needed a maximum distance.

enter image description here

Answered by GISGILDE on July 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP