Skip to main content
Question

How to transfer attributes between "unrelated" features?

  • March 13, 2023
  • 5 replies
  • 18 views

aron
Supporter
Forum|alt.badge.img+16
  • Supporter
  • 135 replies

Say I have one datasource with an scale attribute. On the same workspace but in a different and unrelated set of features I want to use this scale setting as a variable for a buffer. What is the best way to achieve this?

I have tried a few different methods and transfering the attribute through the FeatureReader seems to be the most solid of those I tested, but surely there is a more elegant way to do this?

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • March 13, 2023

FeatureJoiner or FeatureMerger, if you can somehow relate them through one or more attributes.


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • March 13, 2023

One way is to use a FeatureMerger. Pass the features to the Requestor port. Connect one feature with the scale attribute to the Supplier port. In the settings of the FeatureMerger, under 'Join On' enter the same dummy text for Requestor and Supplier. Any value thing will do, as long as they are exactly the same.

FeatureMerger_demo


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • March 13, 2023

Another way is to start with the one feature with the scale, and connect it to a FeatureReader. In the FeatureReader set Accumulation Mode to 'Merge Initiator and Result'.

FeatureReader_Merge_Attributes


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • March 13, 2023

Another way is to start with the one feature with the scale, and connect it to a FeatureReader. In the FeatureReader set Accumulation Mode to 'Merge Initiator and Result'.

FeatureReader_Merge_Attributes

I think this is the most efficient way to do it. As the FeatureMerger is a blocking transformer.


aron
Supporter
Forum|alt.badge.img+16
  • Author
  • Supporter
  • 135 replies
  • March 14, 2023

Thanks for all the answers! I will also do some reading on Published Parameters and try and see if I can get those to work for me.