Skip to main content
Solved

Intersecting overlapping polygons

  • June 17, 2020
  • 6 replies
  • 184 views

mario_bla
Participant
Forum|alt.badge.img+6

Hello,

I'm intersecting two layers of data (polygon.shp and plygon2.shp). One of them (polygon2.shp) has two completely overlapping polygons. I'm getting this:

How to get this:

Here is the sample data: .

Best answer by ebygomm

Do you actually want to intersect the polygons or just find the overlaps?

At the moment the polygons A,1&2 are sent into the area on area overlayer. One area is returned which is the area of polygon A which does not overlap any other polygon. The other area that is returned is the area of polygon A which overlaps both polygon 1 &2 (hence why overlaps says 3)

This is the shape returned where the poly2_ID is missing, it is the area that is not overlapped by any other polygon

If you are just looking for a report of which poly2_IDs overlap poly_ID A then I'd suggest a spatial relator set to intersect, build a list then list explode.

 

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.

6 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • June 17, 2020

Do you actually want to intersect the polygons or just find the overlaps?

At the moment the polygons A,1&2 are sent into the area on area overlayer. One area is returned which is the area of polygon A which does not overlap any other polygon. The other area that is returned is the area of polygon A which overlaps both polygon 1 &2 (hence why overlaps says 3)

This is the shape returned where the poly2_ID is missing, it is the area that is not overlapped by any other polygon

If you are just looking for a report of which poly2_IDs overlap poly_ID A then I'd suggest a spatial relator set to intersect, build a list then list explode.

 


Forum|alt.badge.img+2
  • 194 replies
  • June 17, 2020

Looks like you have a self intersecting polygon. It's a bow tie in the data.

 

If you add an AreaGapAndOverlapCleaner before the overlay and group by fme_feature_type it will repair the geometry and output the correct result.

 

 

Example of what a repair does.

 


mario_bla
Participant
Forum|alt.badge.img+6
  • Author
  • Participant
  • 28 replies
  • June 18, 2020

Looks like you have a self intersecting polygon. It's a bow tie in the data.

 

If you add an AreaGapAndOverlapCleaner before the overlay and group by fme_feature_type it will repair the geometry and output the correct result.

 

 

Example of what a repair does.

 

Hello,

I have checked the geometry and I don't see bow tie. But I have 2 completely overlapping polygons.


mario_bla
Participant
Forum|alt.badge.img+6
  • Author
  • Participant
  • 28 replies
  • June 18, 2020

Do you actually want to intersect the polygons or just find the overlaps?

At the moment the polygons A,1&2 are sent into the area on area overlayer. One area is returned which is the area of polygon A which does not overlap any other polygon. The other area that is returned is the area of polygon A which overlaps both polygon 1 &2 (hence why overlaps says 3)

This is the shape returned where the poly2_ID is missing, it is the area that is not overlapped by any other polygon

If you are just looking for a report of which poly2_IDs overlap poly_ID A then I'd suggest a spatial relator set to intersect, build a list then list explode.

 

I have misinterpreted how AreaOnAreaOverlayer works.

Thank you for your help!


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • June 18, 2020

I have misinterpreted how AreaOnAreaOverlayer works.

Thank you for your help!

In the SpatialRelator ensure that you are building a list of all related IDs

Then use the ListExploder Transformer to explode this list and you will then have a record for each related candidate


mario_bla
Participant
Forum|alt.badge.img+6
  • Author
  • Participant
  • 28 replies
  • June 18, 2020

In the SpatialRelator ensure that you are building a list of all related IDs

Then use the ListExploder Transformer to explode this list and you will then have a record for each related candidate

Thank you again and sorry for taking your time. I just figure it out by myself and deleted the question probably at the same time as you were typing your answer. My mistake was that I was using list builder instead of building list from inside the spatialrelator...

Thanks again!