What I have here is a series of points that are assigned a score. For example, the points are businesses and each business has a unique score. I am trying to assign each point to its nearest curve and then count the scores for each curve. One curve might be assigned 5 businesses with scores of 10,20,50,30,12 and then I want to sum this to get the curve score.
Currently, I am using divide point then the closest point to match a point to a curve. Then I use the ‘series’ as an example for creating the score for each point. However, I struggle to assign the score back to the closest point. But, I have nearly 600,000 points and if anyone had a more optimal way to do this, I would be extremely grateful to save my poor computer from burning.
Assign point to closest curve (hope i understood this correctly)
Some List managemant to assign the value of each point to the curve
Sum values per curve.
EDIT:
THIS METHOD ONLY WORKS IF THERE IS AT LEAST ONE POINT ASSIGNED TO EACH CURVE. IF THIS IS NOT THE CASE ADJUSTMENTS TO THE DEFINITION NEED TO BE MADE.
I did find something strange. You can see in the attachment an example. For the green line, it seems there are no lines connecting to it, so I don’t understand why it has a sum of 1003?
I actually had more of a conceptual question on this.
I have 50,000 curves in my network, trying to match with 27,000 points. And Grasshopper crashes after about an hour. I was hoping I was just going to leave it for a day or two, and hopefully complete, but no. I have tried turning each component on one-by-one to control it.
I could potentially split it into sections and analyse the street networks separately. but wondered if anyone had had thoughts.
Another less efficient option which worked well for me was just splitting the points into 5/6 groups and computing them groups separately with the whole curve network, then summing the curve totals at the end.