TransWikia.com

Replacing Null attribute with the value of the nearest feature

Geographic Information Systems Asked on July 19, 2021

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

One Answer

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.

Correct answer by Fezter on July 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP