AnsweredAssumed Answered

counting points that intersect inside a polygon feature

Question asked by segseg12 on Jun 12, 2019
Latest reply on Jun 16, 2019 by rscheitlin

lets say i have a polygon layer and a point layer what is the best way to return the number of points that intersect with each  polygon feature?



the executeForCount query returns the number of features in the layer.


and the intersect returns a new geometry.


is the only way to do that is intersecting  and then counting the points on every polygon feature?


is there something like aggregate-points for the api?