Attribute rule to detect road segment crossing city border

08-18-2020 02:37 PM
New Contributor

I am writing an attribute rule in ArcGIS Pro to detect road segments that cross City border. I am using Countywide_Statistical_Area_CSA" layer file and Road Centerline layer file. When executing the below code, I keep encountering error message that Geometry Type is Expected in line 3. Can you guide me how to correct the code?

var geom2 = featuresetbyname($datastore,"Countywide_Statistical_Areas__CSA");


if (Crosses($feature.centerlineid, geom2)) {

return "crossed";

} else {

return "not crossed";


0 Kudos
0 Replies