Hi, I'm looking for help with Arcade. I have a polyline feature class of asset inventory (roads - one line for each lane, so dual carriageways will have 2 lines running paralell) and a defect feature class as points. Unfortunately the defect spatial accuracy is not great and therefore i'm unable to use the buffer and intersect function.
I am wondering if I can create a pop-up expression which counts the number of defects that match attributes within the roads inventory layer. Both layers have the unique ID field and Lane number. The road inventory has a total length, and the defect has a number of how far down the road section the defect is present, see examples below:
Road inventory:
UniqueID = abc1
LaneID = L1
Start length = 100
End length = 900
Defect Data:
UniqueID = abc1
LaneID = L1
Defect Meterage Location = 450
I would like to create a pop-up expression when i click on the road inventory layer, it can count how many defects 'fall' within the road section, by matching the attributes (UniqueID and LaneID fields), and also when there Defect Meterage location is located within the road inventory length, like this for example Defect Meterage Location (450m) is between the start and end field (StartField >='100' And EndField <='900')
Is this at all possible? If so, does anyone have any idea where to start / which function i need to use. Any help would be much appreciated