fmeobjects.FMELine.setMeasure

FMELine.setMeasure(measureValues, measureName)

Set the default measure to the given values. Create the measure if it doesn’t already exist. If ‘measureName’ is supplied, this method sets the given measure to ‘measureValues’, or creates the measure if it doesn’t already exist. The size of ‘measureValues’ must be exactly equal to the value returned by numPoints().

Parameters:
  • measureValues (list[float]) – The values of the measure.

  • measureName (str) – (Optional) The name of the measure whose value is to be set, or created.

Return type:

None