Skip to main content
Solved

How to calculate clusters or density by counting neighbors within a set distance?

  • October 12, 2018
  • 1 reply
  • 74 views

dataninja
Forum|alt.badge.img

I have one file which contains over 500 points. I would like to use the transformer "Neighbor Finder" to count neighbors (points) for each point with 50 meters. How do I do that? Thanks so much in advance.

Best answer by hollyatsafe

Hi @trungn1993,

In the NeighborFinder set:

Input: Candidates Only

Number of Neighbors to Find: <blank>

Maximum Distance: 50 (this parameter uses the units of your coordinate system so make sure this is in meters)

Under Attribute Accumulation, Check Generate List and set the Selected Attributes to an attribute that uniquely identifies each point.

The points from the matched port will then hold a list of every neighbour point it has found.

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.

1 reply

Forum|alt.badge.img+2
  • 719 replies
  • Best Answer
  • October 12, 2018

Hi @trungn1993,

In the NeighborFinder set:

Input: Candidates Only

Number of Neighbors to Find: <blank>

Maximum Distance: 50 (this parameter uses the units of your coordinate system so make sure this is in meters)

Under Attribute Accumulation, Check Generate List and set the Selected Attributes to an attribute that uniquely identifies each point.

The points from the matched port will then hold a list of every neighbour point it has found.