Select to view content in your preferred language

Arcade Count

262
1
11-26-2024 07:52 AM
Labels (1)
FrankBrenner
New Contributor

Use of intersects on two layers (Polygon / Point) and count number of records found

0 Kudos
1 Reply
CodyPatterson
MVP Regular Contributor

Hey @FrankBrenner 

You're probably looking for something like this, returning the value of the count or similar:

 

// Replace 'PointLayerName' with the actual name of your point layer
var points = FeatureSetByName($map, "PointLayerName");

// Filter points that intersect the current polygon
var intersectingPoints = Filter(points, Intersects($feature, geometry($feature)));

// Count the number of intersecting points
Count(intersectingPoints)

Cody

 

0 Kudos