I have a linear feature class (road network) that is split into segments less than 2 miles in length. Each segment is assigned a value. I want to calculate a distance weighted sum in some manner such as the following:
- Calculate midpoint of each segment
- Search X distance units along the linear feature the segment belongs to and sum all values within the search distance with distance weighting (fractional multiplier of each value based on defined distance bins)
- Return this weighted sum to each segment as a field value
I know how to do 1 and 3, but I'm stumped on how to accomplish 2. Usual methods for calculating spatial statistics ignore geometry and search in a full circle. I want to only search along the linear feature the segment is a part of.