Skip to main content
Solved

"Spatial cross/outer join" ?


lifalin2016
Contributor
Forum|alt.badge.img+29

Hi,

I have two data sources with polygons. I need to match every single polygon from first dataset to every single polygon in second dataset. Output should be any pair that have their two polygons intersect.

I've tried to utilize SpatialFilter, but that doesn't do what I want. It only matche some polygons to each other.

I've had a look at SpatialRelator, but it still has assymetric inputs (Requestor, Supplier), so I think it'll work as SpatialFilter. Besides it requires some attribute condition which I can't meet.

What is the best way to make this M-by-N "spatial cross/outer join" ?

Cheers

 

Lars I.

Best answer by takashi

Hi @lifalin2016, I think the SpatialRelator is what you are looking for. Have a look at the list attribute called "_relationships" by default, which contains every attributes of all the Supplier features that are spatially related to the Requestor feature.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

2 replies

takashi
Influencer
  • Best Answer
  • November 2, 2016

Hi @lifalin2016, I think the SpatialRelator is what you are looking for. Have a look at the list attribute called "_relationships" by default, which contains every attributes of all the Supplier features that are spatially related to the Requestor feature.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • November 2, 2016

Thanks Takashi,

I did look into the SpatialRelator in the meantime, and ended up with a custom transformer like this:

So your suggestion was spot on :-)

My only issue is that I can't seem to get the list of relationship tests to work as a transformer published parameter (type Choice), so it's sofar hardcoded in the SpatialRelator in the custom transformer :-S

Cheers

 

Lars I


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