Skip to main content
Question

Create an attribute based on spatial overlap and existing attribute

  • November 24, 2013
  • 3 replies
  • 194 views

I'm new to fme so bare with me..

 

I have one reader which is a harbours layer and has an attribute called location which is the name of the harbour. I also have a layer of vegetation polygons. What I want to do is add the location attribute to the vegetation layer where it overlaps with the harbour layer. How would I do this in FME?
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.

3 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • November 24, 2013
Hi,

 

 

To spatially relate features and transfer attributes between them see the SpatialFilter or SpatialRelator.

 

It is always a good idea to consult the documentation about the workings of transformers and their parameters.

 

 

Itay

  • Author
  • November 25, 2013
Thanks, I was using the SpatialRelator but wasn't getting the result I wanted. Eventually found the problem was that I was using 'overlaps' when I should have been using 'Intersects' as the the overlaps option does not include features that are fully contained by other features (i.e. the harbour features).

Forum|alt.badge.img
  • November 25, 2013
I have a very similar situation so I thought I would add to this thread and was wondering if you guy's could help.

 

 

I'm trying to populate an attribute value from one feature to the next.

 

 

I am using the SpatialRelator to find all my points that overlap my polygon, then I would like to map the value from my polygon onto the points that are contained by the polygon.

 

 

I have connected an AttributeValueMapper transformer to the output of my Spatial Relator but it does not seem to overwrite or transfer the attrubtes?