Skip to main content

Hi!

I must import many shapefiles in a gdb region per region => first region 1's shapes, then region 2, ...

I have an attribute "region code" (001, 002, 003...) and want to remplace in the transformer the code by the name based on a list for exemple: 001 => FRANCE, 002=>ENGLAND...

Wich transformer could do this for me?

Thanxs and sorry it's maybe a basic

Try using the AttributeValueMapper, this should suit your needs. You can import a list to remap your attribute.


Hi

Lots of transformers can help you with this. If your list of potential values is static and rather limited, I'd suggest either the

  • AttributeCreator with conditional values, or the
  • AttributeValueMapper

If your list is big or subject to change, or is already stored in a dataset somewhere, you could use one of the following (ordered by easy to difficult)

  • Reader with FeatureMerger
  • Joiner
  • InlineQuerier
  • SQLExecutor
  • SchemaMapper

I'm sure there are others I've forgotten :-)

David


I would write the codes and values in an Excel spreadsheet (or csv file) and use the Joiner to add the values to the features.

That way, if the names or codes change, you only have to change the spreadsheet and not the workspace.


Thanxs you all 🙂


Reply