span8
span4
span8
span4
Hi,
I have a table which is using numbered attributes such as the following (this is a fictitious simplified example):
Id | Description | LanguageCode0 | NotationAlphabet0 | NameText0 | LanguageCode1 | NotationAlphabet1 | NameText1 | LanguageCode2 | NotationAlphabet2 | NameText2 |
1 | Park1 | FRE | Latin | Parc Vert | DUT | Latin | Groenpark | ENG | Latin | Green Park |
2 | Park2 | FRE | Latin | Parc Rouge | DUT | Latin | Roodpark | ENG | Latin | Red Park |
In the above situation each park has 3 names, one for each language (FRE, DUT or ENG)
And I need to re-organize it in such a way that it looks like the following:
Id | Description | LanguageCode | NotationAlphabet | NameText |
1 | Park1 | FRE | Latin | Parc Vert |
1 | Park1 | DUT | Latin | Groenpark |
1 | Park1 | ENG | Latin | Green Park |
2 | Park2 | FRE | Latin | Parc Rouge |
2 | Park2 | DUT | Latin | Roodpark |
2 | Park2 | ENG | Latin | Red Park |
I have tried to achieve this with a ListExpressionPopulator or using the ListPopulator. With the first solution I can get everything into one list but I lose information on the attribute name (LanguageCode, NotationAlphabet,...). Using the ListPopulator it seems this will lead me to having a distinct list for each attribute. But then how can I merge multiple lists into one, keeping in mind that there could be quite many attributes in my real table.
Or do you see other ways of transforming this table?
Thanks in advance for your suggestions!
Olivier
Show differing attributes between two touching features 2 Answers
Create Attribute whose value is dictionaty 1 Answer
LineJoiner List doesn't include all attributes 1 Answer
How to change List to attribute (with ListIndexer transformer loop or another way)? 7 Answers
XMLReader list creation 1 Answer
© 2019 Safe Software Inc | Legal