Skip to main content
Solved

How to detect multiple intersections

  • November 18, 2016
  • 9 replies
  • 172 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.

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.

9 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

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+18
  • 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

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

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

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+18
  • 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.