Skip to main content
Solved

Total count of features from dataset A within certain proximity of features from dataset B

  • April 20, 2020
  • 4 replies
  • 105 views

lcw
Forum|alt.badge.img

Hi all,

What's the best way of getting FME to populate an attribute field in ArcGIS geodatabase point feature class A (areas of interest) with the total count of features from dataset B (assets)? I.e. find the total number of assets within 10m distance of sites?

I thought the Neighbourhood Finder or Point on Point transformers followed by a Statistics Calculator should do the trick, but can't get it to work.

Thank you!

Best answer by ebygomm

The neighbourfinder with Generate List ticked under attribute accumulation and then a listelementcounter should do the job here. No need for a statistics calculator

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.

4 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • April 20, 2020

Hi @lcw,

You are on the right track, just make sure one of these transformers creates a list and then you can count the number of list elements (ListElementCounter) for your result.

Hope this helps.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • April 20, 2020

Hi @lcw,

You are on the right track, just make sure one of these transformers creates a list and then you can count the number of list elements (ListElementCounter) for your result.

Hope this helps.

A list element counter counts the number in the list - no need to add 1

A feature with attributes list{0} and list{1} will give a result of 2 in the listelementcounter


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • April 20, 2020

The neighbourfinder with Generate List ticked under attribute accumulation and then a listelementcounter should do the job here. No need for a statistics calculator


lcw
Forum|alt.badge.img
  • Author
  • 10 replies
  • April 20, 2020

The neighbourfinder with Generate List ticked under attribute accumulation and then a listelementcounter should do the job here. No need for a statistics calculator

Fantastic, that worked a treat! Thanks for the fast reply and excellent screen grab. Much appreciated!