Skip to main content
Solved

Tester plus NeightborFinder

  • May 25, 2017
  • 2 replies
  • 18 views

alpheus
Participant
Forum|alt.badge.img+2

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.

Best answer by redgeographics

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • May 26, 2017

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.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 26, 2017

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.