Skip to main content
Question

Assigning CAD annotations as attribute values to features


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

3 replies

deanhowell
Influencer
Forum|alt.badge.img+23
  • 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+23
  • 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
deanhowell wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings