Skip to main content
Solved

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


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

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

4 replies

itay
Supporter
Forum|alt.badge.img+16
  • Supporter
  • 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+31
  • Influencer
  • April 20, 2020
itay wrote:

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+31
  • Influencer
  • 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
  • April 20, 2020
ebygomm wrote:

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!


Reply


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