hi everyone!
some of my line features (pipes) have text features floating above (top left) of the line, describing what type of pipe it is. I want to add that text as an attribute field to that feature. but also not all of the lines have one and I want it to only match if it's describing that feature (not grabbing a random text field nearby). I'll also note that everytime I've tried to use neighborfinder, the autocad_text_string AND fme_text_string values of lines show numbers (ex. 356.77, 623.44) instead of the descriptive text it should have shown.
I've been trying this for hours and would appreciate any help given. thanks in advance!
my workflow is:
DWG Reader → Attribute exposer → Feature joiner1
CSV Reader → Duplicate filter → Feature joiner1
Feature joiner1 → Deaggregator → 2D forcer → Geometry filter → point/text & lines
Point/Text → Tester (if fme_type = text) → Attributemanager (create new attribute field: final_textstring, set to @value(autocad_text_string) & delete the rest of the attributes) → Neighborfinder (candidate)
Line (from geomfilter) → neighbor finder (base)
DWG Reader parameters:
- explode blocks into entities = NO
- explode MText entitites = NO
Neighborfinder parameters:
input = Bases & Candidates
Candidates First = No
# of neighbors to find = 1
max distance = 3
inser vertex on base feature = no
treat measures as = continous
treat polygons as = lines
replace measures/Z with candidate = no
merge attributes = yes
accumulation mode = prefix
prefix = test_
** note - I've also tried with merge candidate - base first AND candidate first

