fmeobjects.FMELine.setPointAt

FMELine.setPointAt(index, point)

Sets ‘point’ at the specified index. The line’s points will be forced to have a consistent dimension. If any points are 3D, they all must be. A Z value of 0.0 is used when converting from a 2D point to a 3D point. The points will be forced to have consistent measures. Any unspecified measure values will be set to None. An error is returned if the index is out of range.

Parameters:
  • index (int) – The index which to set the point.

  • point (FMEPoint or tuple) – The point to set at the given index.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.