Select to view content in your preferred language

Count of points within polygons

178
1
Jump to solution
2 weeks ago
Labels (1)
StephenKing3
Frequent Contributor

Hello,

I am trying to follow this example Arcade script (Display the Counts of Point Features within Polygon Features Using Arcade in ArcGIS Dashbo) to show the number of points within a polygon in an Indicator. Can anyone tell me what the pointlayer_ID / polygonlayer_ID refers to? Is it the layer ID like 'Layer: Wells (ID: 3)' e.g. var point_layer = FeatureSetByPortalItem(p, 3);

If so, I haven't been able to get this to work, it just returns an error.

I'm using ArcGIS Enterprise 11.5 and working with layers in a map image layer.

Thanks,
Stephen

0 Kudos
1 Solution

Accepted Solutions
StephenKing3
Frequent Contributor

I solved it. The format is e.g.

var point_layer = FeatureSetByPortalItem(p, '9ec5c60bf56a652dad7f80352022c3e1', 8);
 
Where the long number is the service item ID followed by the layer ID

View solution in original post

0 Kudos
1 Reply
StephenKing3
Frequent Contributor

I solved it. The format is e.g.

var point_layer = FeatureSetByPortalItem(p, '9ec5c60bf56a652dad7f80352022c3e1', 8);
 
Where the long number is the service item ID followed by the layer ID
0 Kudos