Can anyone help with an Arcade expression to calculate a new field in a point dataset based on whether or not each point feature is within a polygon dataset in ArcGIS Pro ModelBuilder?

I have a point dataset of CRM reports, and I want to indicate whether or not each point falls within the 1 in 100 year flood zone.

I am trying this in Calculate Field but it returns NULL values for each point. I also tried $datastore instead of $map but that didn't work either.

var point = Geometry($feature);
var polygon_layer = FeatureSetByName($map, 'flood');
var polygons = Intersects(polygon_layer, point);

if (Count(polygons) > 0) {
  return "yes";
else {
  return "no";

1 Answer 1


You have tagged this question as ArcPro and mentioning modelbuilder so it implies you are attempting this analysis in ArcPro and not in ArcGIS Online. So if this is correct you need to read the help file for the Field calculate profile. Under the profile variables it is very clear that $map is not an accessible variable to field calculations, so basically your approach is flawed and won't work. With that said I would say your approach is an unusual approach for computing the information you need. Typically I would be using the Spatial join tool in modelbuilder or possibly the new Add Spatial join tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.