fmeobjects.FMELine.getMeasureValueAt

FMELine.getMeasureValueAt(index, measureName)

Get the value of the default measure at the ‘index’. If ‘measureName’ is supplied, this method gets the value of the named measure at ‘index’. Returns an error if the measure doesn’t exist or ‘index’ is out of range.

Parameters:
  • index (int) – The index where to retrieve the value from.

  • measureName (str) – (Optional) The name of the measure whose value is to be returned.

Return type:

float

Returns:

The value of the default measure at the given index, or the measure named by ‘measureName’ at the given index.

Raises:

FMEException – An exception is raised if an error occurred.