Skip to main content
Question

How can i perform a spatial join of points with many to many (m:n) relation?

  • Oct 27, 2022 8:27 AM UTC
  • 6 replies
  • 171 views

renetschi
Contributor
Forum|alt.badge.img+4

Hello everyboy!

 

I got two different point feature classes.

 

The neighbor finder lets me do the 1:1 and 1:n relation which is fine.

 

Now i would like to perform a spatial many to many (m:n) relation of the points of the two feature classes but i can't figure out a decent way to do this in fme.

 

I really appreciate your help!

 

Thanks a lot!

René

6 replies

geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Oct 27, 2022 9:37 AM UTC

Would it help to use the NeighborFinder in Candidates Only mode?


renetschi
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Oct 27, 2022 12:31 PM UTC

hey!

 

i am not quite sure.

 

as far as i understand the neighborfinder, the candidates only mode just turns around the 1:n cardinality to a n:1 cardinality so that many base inputs relate to one candidate input.

 

or do i get it wrong?

 

thanks for your reply!


dustin
Influencer
Forum|alt.badge.img+36
  • Influencer
  • Oct 27, 2022 12:50 PM UTC

I would look into the PointOnPointOverlayer with a high tolerance. You could at least configure the list parameter to return attributes of all points within that tolerance.


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Oct 27, 2022 1:13 PM UTC

hey!

 

i am not quite sure.

 

as far as i understand the neighborfinder, the candidates only mode just turns around the 1:n cardinality to a n:1 cardinality so that many base inputs relate to one candidate input.

 

or do i get it wrong?

 

thanks for your reply!

I was thinking of something like this.

Many_to_ManyEvery point of dataset A can have 0 or more points of dataset B in the list, and the other way aroud. Does this count as many-to-many?


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Nov 1, 2022 11:31 AM UTC

increase the number of neighbors to find value in settingincreas neighbours


renetschi
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • Nov 30, 2022 1:27 PM UTC

hey thanks for all your help. i will take a look into it and hopefully my problem will be solved!