I want to map multiple attributes to one using the Schemamapper:
Ie:
InputFeature:
FirstName: Roger
Lastname: More
OutputFeature:
FullName: Roger More
How should the SchemaMapper.csv look like?
FullName, FirstName + LastName ???
I want to map multiple attributes to one using the Schemamapper:
Ie:
InputFeature:
FirstName: Roger
Lastname: More
OutputFeature:
FullName: Roger More
How should the SchemaMapper.csv look like?
FullName, FirstName + LastName ???
@Value(FirstName)@Value(LastName),FullName
I always have to refer to http://fmepedia.safe.com/articles/Samples_and_Demos/Mapping-Schemas-using-SchemaMapper when using the SchemaMapper. Maybe, you can find your case in one of these examples?
best regards,
Jelle
I want to "merge" two input-attributes (Firsname AND Lastname) to a new attribute (FullName)
In my testing, Tcl "concat" command worked well. @Evaluate(econcat @Value(FirstName) @Value(LastName)]),FullName I'm not familiar with Tcl, cannot describe more details... By the way, why not use the StringConcatenator or the AttributeCreator?
Takashi
I am aware how to do it within FME - however the reason the SchemaMapper exist is to separate the mapping from FME itself (ie let a domain-expert do the mapping in EXCEL and the FME-expert take care of the rest:)).
InputAttribute OutputAttribute Firstname FullName @Value(FullName) @Value(LastName)' FullName
However that did not seem to work either - as the last value overwrote the Firstname
@Evaluate((return "@Value(FirstName) @Value(LastName)"])
I've never used Tcl so far, but it seems to have big availability especially for string processing.
-----
@Evaluate(treturn {@Value(FirstName) @Value(LastName)}]) @Evaluate(tformat "%s %s" {@Value(FirstName)} {@Value(LastName)}]) @Evaluate(tconcat {@Value(FirstName)} {@Value(LastName)}])
-----