Skip to main content
Question

Assigning CAD annotations as attribute values to features

  • August 11, 2020
  • 3 replies
  • 99 views

fikusas
Contributor
Forum|alt.badge.img+5

I need to relate text values (annotations) to lines. In the example bellow, there are 3 lines and 2 annotations. The longest line (two segments) should get value "PEd100" and the other one should get PE32. Annotations aren't related to lines by common attribute, just placed near the lines.

In this case both geometry and annotations are on the same layer, but it's not always the case. Any ideas?

 

cad_lines

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.

3 replies

deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • August 11, 2020

Hello @fikusas​ I have worked on a project which does very much the same and it is a matter of using the neighborfinder and transformers like featuremerger to merge the attributes. The harder bit of the puzzle is related to which label should be assigned to which line. Is your criteria based on which label is closest to each line?


deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • August 11, 2020

Annotation 2020-08-11 155431Here is a simple solution




fikusas
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 11, 2020

Hello @fikusas​ I have worked on a project which does very much the same and it is a matter of using the neighborfinder and transformers like featuremerger to merge the attributes. The harder bit of the puzzle is related to which label should be assigned to which line. Is your criteria based on which label is closest to each line?

I thought about this approach (NeighbourFinder + FeatureMerger). Sometimes this approach will give false positives. So I wonder if there are some other ideas.