Skip to main content
Solved

using attribute value mapper - to map from multiple input attributes to a single output attribute

  • February 21, 2025
  • 2 replies
  • 35 views

curtisd54
Contributor
Forum|alt.badge.img+4

Hello, I am looking to use attribute value mapper ( or another transformer etc) to  map from multiple input attributes (VEG_SBOIS)  and (CLASSE) to a single output attribute (SURF_COVER)

 

see below screenshots for example

 I have tried using a tester with  left value filled in and operator  “attribute has a value” but it doesnt work perfectly since im only looking to map certain input values (not all ) to different output values.

 

 

any help is appreciated,

thanks,

Curtis

Best answer by bwn

Hi Curtis,

As an aside, Windows screenshot snipper shortcut is Windows Key+Shift+S .  No phone camera required! 😉

To interpret what trying to do, is it that you only want to map some of the values, but all other values should remain the same?  If by default want to carry the original value over to the new Destination Attribute without change, then set the “Default Value” parameter equal to the Source Attribute value.

Then only put values that want to change in the Value Map.  In your screenshots, if you have some values mapped to a blank string, then the output will be a blank string.  If this is not what is wanted, remove these entries from the Value Map, and instead the Destination value will become the Source Attribute value by the Default Value setting.

 

To map two separate Source Attributes to one destination attribute there are a couple of approaches, and it depends on what priority you wish to give to Features that may have two conflicting values to map.

A general approach would involve a TestFilter or Tester(s)

Using TestFilter allows to create different Sets of Features to go to different AttributeValueMapper logic

Eg.

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • Best Answer
  • February 22, 2025

Hi Curtis,

As an aside, Windows screenshot snipper shortcut is Windows Key+Shift+S .  No phone camera required! 😉

To interpret what trying to do, is it that you only want to map some of the values, but all other values should remain the same?  If by default want to carry the original value over to the new Destination Attribute without change, then set the “Default Value” parameter equal to the Source Attribute value.

Then only put values that want to change in the Value Map.  In your screenshots, if you have some values mapped to a blank string, then the output will be a blank string.  If this is not what is wanted, remove these entries from the Value Map, and instead the Destination value will become the Source Attribute value by the Default Value setting.

 

To map two separate Source Attributes to one destination attribute there are a couple of approaches, and it depends on what priority you wish to give to Features that may have two conflicting values to map.

A general approach would involve a TestFilter or Tester(s)

Using TestFilter allows to create different Sets of Features to go to different AttributeValueMapper logic

Eg.

 


curtisd54
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • February 24, 2025

thanks , much appreciated. I used something similar to the TestFilter it worked better than the tester for this case


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