Skip to main content

I am currently translating from Microstation and want to take attributes from a cell and a text node and combine them to output one object. The cell and the text node do not know each other so I am guessing a neighborfinder will need to be used. I have been struggling on how to get it all done and was hoping for an example :)

Hi,

The neighborfinder can help and is useful once there a 1:1 relation between cell and text in the case of 1:N filtering the list generated by the neighborfinder (you have have to specify that in the parameters) can help when there are not too many neighbors found.

Where a 1:N relation exists and the list filtering does not result in any matching, a more manual and labor intensive method is usually safer.

Hope this helps,

Itay


In addition to what @itay said I'd like to point out that the NeighborFinder will use the text reference point and in cases where there's cells/texts close together it may not always make the right connection (it's purely based on distance) so even if you have a 1:1 relation it's probably good to do spot checks on tricky locations.


For an example, check out this exercise from the FME Desktop basic training:

https://desktopmanualbasic.safe.com/DesktopBasic4Components/4.Exercise8.html

It takes contours and find the closest label in order to apply an elevation, which is pretty similar to your scenario. There's another example in our knowledgebase here:

https://knowledge.safe.com/articles/23302/passing-attributes-between-features-in-close-proxi.html


Reply