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).
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.