Skip to main content
Question

Create an attribute based on spatial overlap and existing attribute

  • November 24, 2013
  • 3 replies
  • 124 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?

3 replies

fmelizard
Safer
Forum|alt.badge.img+18
  • 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?

 

 

 


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