fmeobjects.FMEPalette.getKeyIndices

FMEPalette.getKeyIndices(keys)

Returns the indices of the specified keys in the palette.

An index represents the position of a key in the overall list of keys. For example, if a palette contains the following keys: 0 2 5 8, then the corresponding indices are: 0 1 2 3.

Parameters

keys (FMETile) – The keys tiles to look for. The keys tiles must be the same interpretation as the palette keys.

Return type

FMETile

Returns

Indices of the specified keys in the palette.

Raises

FMEException

An exception is raised:

  • if an error occurred.

  • if the palette does not contain one of the specified keys.