Skip to main content
Solved

count number of points in a polygon

  • June 29, 2017
  • 3 replies
  • 289 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+23
  • 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+23
  • 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!