TransWikia.com

Why is my Arcade Intersects Expression not returning consistently correct results?

Geographic Information Systems Asked by geo_rclark on January 28, 2021

I’ve written an Arcade Pop-Up expression that uses the Intersects function to return "Intersecting" or "Not Intersecting" based on whether a point feature intersects a polygon feature. I am getting varied results, with multiple cases of the Pop-Up returning "Not Intersecting" when the point is clearly intersecting a polygon feature. In my attached photo, the salmon colored area is a polygon, the white color is outside the bounds of the polygon.

Pop-up expression:

var geom1 = $feature;
var geom2 = FeatureSetByName($map,"Groundwater Plumes");
var intersectLayer = Intersects($feature, geom2);
var cnt = Count(intersectLayer)
var plume_int = " "



if (cnt >= 1) {
    for (var f in intersectLayer){
        plume_int = "Intersecting"
     }
} else {
    plume_int = "Not Intersecting"
}
return plume_int;

example of intersect error

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP