Skip to main content
Question

Polygon inside polygons

  • February 20, 2019
  • 4 replies
  • 429 views

Hello.

A relative beginner in FME that need help with the following.

I have two different types of polygons, one representing districts and one representing postal codes.

I want to find out what districts the different postalcodes belong to, the borders do not exactly match so I want postalcodes that appear in several districs, to display all the districsts they appear in, not only one.

I have tried in FME but have not gotten it to work,

I have managed to solve it in Arcmap but it then takes me quite a while. There I have to select one district, then got to select by location and select all postalcodes that intersect within the selected district. Export this as an own file and give all the postalcodes here a name of the district they appear in. Then redo this for every single district, and finally merge all these files.

Appreciate help.

 

Regards

Jonathan

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.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 20, 2019

A clipper or spatial relator will give you this output in FME.

For the clipper, your districts will be the clipper and the postcode areas the clippee. You will want to merge the attributes if you want the postcodes to inherit the district name

 


  • Author
  • 1 reply
  • February 20, 2019

A clipper or spatial relator will give you this output in FME.

For the clipper, your districts will be the clipper and the postcode areas the clippee. You will want to merge the attributes if you want the postcodes to inherit the district name

 

Worked like a charm. Thanks alot!

I was messing around with the areaonareaoverlayer.

 


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • February 20, 2019

I agree with @egomm - the SpatialRelator is the way to go here. The Spatial Predicates setting is where you define what sort of relationship (like intersects, contains, overlaps, etc). Use the Generate List option and you will get a list of the different districts each postcode overlaps. From there you can either concatenate that list into a single attribute (ListConcatenator) or split it up into a separate record (feature) per result (ListExploder).


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • February 20, 2019

I agree with @egomm - the SpatialRelator is the way to go here. The Spatial Predicates setting is where you define what sort of relationship (like intersects, contains, overlaps, etc). Use the Generate List option and you will get a list of the different districts each postcode overlaps. From there you can either concatenate that list into a single attribute (ListConcatenator) or split it up into a separate record (feature) per result (ListExploder).

But as soon as I posted that I see you have it working already! So all is good.