1

I want to write a script that will fill field values in the attribute table the following way:

There are dots with attributes and lines I am creating. I want the script to use the field value of the dots, which a created line is snapped on and fill a field in attribute table of the line based on the values of the dot.

I want to put the referent to be the dot (so from attribute table of the dot should be taken the data) and the line to be target (to the attribute table of the line where should the data be puten).

enter image description here


I have dots that are snapped on lines. I want value from attribute field named as HP in the attribute table on every dot that is snapped to every line to copy to attribute field HPcount in the attribute table of every line. This is how it looks the real situation in QGIS.

enter code here

Kadir Şahbaz
  • 76,800
  • 56
  • 247
  • 389
Anton
  • 21
  • 1

1 Answers1

1

Try the NNJoin plugin - it will find the nearest line to your point and create a new layer with merged attributes. Not sure how it would work the other way around, especially if you have two points snapped to the same line, but it's worth a shot.

miln40
  • 1,111
  • 12
  • 20