I'm looking for help with Arcade to get the fsPoint from a variety of feature classes.
I have storm pipes that would be snapped to catch basins, manholes, or outfall points.
What expression should I be using to pull from my Stormwater Feature Dataset within my geodatabase?
Pro 2.6, geodatabase environment.
var g = Geometry($feature);
var fromPointGeometry = g.paths[0][0];
var fsPoint = FeatureSetByName($datastore, "swCatchBasin", ["FACILITYID"], false);
var fromPoint = First(Intersects(fsPoint, fromPointGeometry ) )
if (fromPoint == null) return -1;
return fromPoint.FACILITYID;