fmeobjects.FMEPalette.addKeysAndValues

FMEPalette.addKeysAndValues(keys, values)

Adds keys and values to the palette. This method can add and/or set multiple values at once.

The input keys tile must be the same interpretation as the palette keys. The input values tile must be the same interpretation as the palette values.

The size of keys must be the same as the size of the values.

Parameters:
  • keys (FMETile) – Key tile to add. Must be the same interpretation as the palette keys.

  • values (FMETile) – Value tile to add. Must be the same interpretation as the palette values.

Return type:

None

Raises:

FMEException

An exception is raised:

  • if an error occurred.

  • if the number of new keys exceed the maximum number of keys this palette can handle.