Solved

count number of points in a polygon

  • 29 June 2017
  • 3 replies
  • 103 views

Hi there,

I'm using a PointOnAreaOverlayer to try and count the number of features ("UPRN") in a polygon ("DMA"). However, its not working. What group by or parameters might I need to set?

icon

Best answer by erik_jan 29 June 2017, 17:25

View original

3 replies

Userlevel 2
Badge +16

You do not need a group by parameter. The number of points in a polygon should be added as an attribute (default _overlaps) to the area output features.

Userlevel 2
Badge +16

If the count in the transformer is not working properly, the cause is quite often that the sources (points and polygons) are in different coordinate systems. Can you verify that both sources are in the same coordinate system? If not, use the Reprojector transformer to get them in the same coordinate system, before feeding the to the PontonAreaOverlayer.

Hi erik_jan

That did the trick - I added the Reprojector transformers and now I'm getting a count. Thanks for your help!

Reply