Skip to main content
Solved

How to detect multiple intersections

  • November 18, 2016
  • 9 replies
  • 120 views

Forum|alt.badge.img

I have a problem with detecting intersections between polygons. I have 2 sets of polygons and they have intersection between each other. For example we have 1 pair from 1 and 2 set that must intersects.

But programm says that only circle 1 intersects polygon 1 and polygon 2 and circle don't!

That is my workspace:

What is wrong with my settings and what should i do to detect every intersection?

Best answer by markyandex

Ok guys i reached my task. This helps me https://groups.google.com/forum/#!topic/fmetalk/c_SjMXlURng but it's strange that i dont have some tests to perform (for example overlap) in my spatialrelator, so i used downloaded workspace to solve my problem.

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

9 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

I'm not sure but I think the SpatialFilter stops after finding the first match. If you try it with a SpatialRelator instead you'll get a list of all matching candidates.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • November 18, 2016

Hi @markyandex, is there a geometry difference between the circles? how does FME 'see' the geometry of the 2 features?


Forum|alt.badge.img
  • Author
  • November 18, 2016

Ok now it detects intersections but the next problem is attributes: for 1 requestor only 1 supplier, but the total amout of intersections is 2 for each Circle, what's wrong? I want to see comparison like Circle 1 intersects Polygon 1 and Polygon 2 and Circle 2 intersects Polygon 1 and Polygon 2, but now only Circle 1 intersects Polygon 1 and Circle 2 intersects Polygon 1.


david_r
Celebrity
  • November 18, 2016

You may want to test switching the Candidate and Filter inputs.


Forum|alt.badge.img
  • Author
  • November 18, 2016
david_r wrote:

You may want to test switching the Candidate and Filter inputs.

I didi it and now it shows that Cicrle 1 have 2 intersects and Circle 2 don't have any.

 

 


Forum|alt.badge.img
  • Author
  • November 18, 2016
itay wrote:

Hi @markyandex, is there a geometry difference between the circles? how does FME 'see' the geometry of the 2 features?

I'm not sure i understood your question. Every object has its coords and unique attributes.

Forum|alt.badge.img
  • Author
  • November 18, 2016
redgeographics wrote:

I'm not sure but I think the SpatialFilter stops after finding the first match. If you try it with a SpatialRelator instead you'll get a list of all matching candidates.

 

Sorry missclicked. Answer to you below.

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • November 18, 2016

the 1 to many relationship is reflected in the list generated by the spatial relator, see the help on the transformer for more information


Forum|alt.badge.img
  • Author
  • Best Answer
  • November 22, 2016

Ok guys i reached my task. This helps me https://groups.google.com/forum/#!topic/fmetalk/c_SjMXlURng but it's strange that i dont have some tests to perform (for example overlap) in my spatialrelator, so i used downloaded workspace to solve my problem.


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