Skip to main content

I'm pretty new to FME so I may be missing something obvious, but here goes: I have two AutoCAD layers, a text layer and a line layer. I need to find which text entities have the same rotation as the line entities. Then I need to take these line & text entities that share the same rotation and find which among them are within X units of each other. I've found the rotation of the lines using the custom transformer AzimuthCalculator, but when I feed both the text and lines into a single tester to see if their rotations are equal, the tester passes nothing, even when the rotations are equal (as verified with the inspector). The text rotation is a 64 bit real and the line rotation is encoded as utf-8, but from what I gather that shouldn't matter. Why is the tester not passing anything? My plan if the tester would work as desired is to then GeometryFilter the passing tester results into line & text and feed them into a NeighborFinder.

You should use a neighborfinder to make the lines grab all the attributes of nearby texts and then run them through the Tester (that works on a per-feature basis).

Probably test on a range of values to account for tiny rotatiion variations.


you can only test (or use an expression) on values when they are in the same record (row).

To get them in same record you must relate them positively.

Like neighbourfinder (or other spatial tests).

Or when there is an "administrative" or data relation you can use a featuremerger etc.


Reply