Skip to main content
Solved

count number of points in a polygon


thedeeleys04
Contributor
Forum|alt.badge.img

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?

Best answer by erik_jan

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.

View original
Did this help you find an answer to your question?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • June 29, 2017

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.


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • June 29, 2017

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.


thedeeleys04
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • June 30, 2017

Hi erik_jan

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings