Skip to main content
Question

conditional attribute mapping

  • June 2, 2016
  • 1 reply
  • 14 views

vki
Contributor
Forum|alt.badge.img+7

I have some data that I read using Single Merged Feature Type (about 40 individual featuretypes). Most of the featuretypes have an attribute "A_num" (numbers). Now I need to create a new attribute "A_txt" with the text-values for those numbers. The text-values are different though for different tables. I have an excel sheet with the following columns: table, attributname (= A_num), value, text-value.

So I guess I have to do something like that: Filter the inputdata for individual featuretypes, merge the data for each featuretype with the excelsheet and map the text-values to the new attribute "A-txt".

I think, this is quite complicated and there has to be a more elegant way to do it. I have a second excelsheet with all the table names. Maybe I could somehow loop through this, and do the filtering based on the table names? Any other ideas?

Thanks in advance.

Vera

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.

1 reply

vki
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • June 2, 2016

I found a way now using a Joiner. I read the excelsheet in the joiner and joined the tables based on the tablename and the attributname.

It didn't work before, because there was an space-character at the beginning of the tablename-string...