0

I have several polygons with "Null" values that I would like to give them the "Name' of their nearest polygonal feature. As you see in the photo, the light green polygon is actually a part of the purple polygon, but it is separated because it has null name and not the same name as the parent polygon. Any idea how can I assign the same name to both polygon in order to end up with one harmonised feature using FME, Please?

enter image description here

0

1 Answer 1

1

The transformer you want is the NeighborFinder. The NeighborFinder has Base and Candidate ports. You want to put your "NULL" features linked to the base port and the other ones to the Candidate port.

enter image description here

There is an option for Attribute Accumulation. I recommend setting it to "Prefix Candidate" that way, all of your merged features will have attributes of both.

enter image description here

Then you can do some post-processing in an AttributeManager to set the NULL values to the resulting closest feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.