HOW TO
When there are many different feature classes grouped closely among each other in ArcGIS Pro, it is difficult to determine if these feature classes are located within a specific distance.
This article describes the workflow to conditionally determine if a feature class is located within a specified distance from another feature class using Arcade in ArcGIS Pro.
In this example, a point feature class and a line feature class are used.
var lines = FeaturesetByName($datastore, "<lineName>")
return IIF(Count(Intersects(Buffer($feature, <numericValue>, "<unit>"), lines)) > 0 , "Yes", "No")
The code below shows the example of the full working script.
var lines = FeaturesetByName($datastore, "Line1")
return IIF(Count(Intersects(Buffer($feature, 10, "kilometers"), lines)) > 0 , "Yes", "No")
The image below shows the example of the full working script in the Calculate Field dialog box.
The image below shows the result of 'Yes' or 'No' if the points are within a specified distance of a line.
Article ID: 000030048
Get help from ArcGIS experts
Download the Esri Support App