fmeobjects.FMEGeometryTools.appendCurve

FMEGeometryTools.appendCurve(destinationCurve, sourceCurve)

Appends the source curve to the destination curve. This will not merge curves but simply append them into an IFMEPath if necessary. If the source curve is None, nothing will be done and the destination curve will be returned. If the destination curve is None, it will be set to the source curve. If the source and destination curves do not have touching end points, a line will be inserted to connect them.

Parameters:
  • destinationCurve (FMECurve or None) – The curve to append to the source curve to.

  • sourceCurve (FMECurve or None) – The curve to append to the destination curve.

Return type:

FMECurve or None

Returns:

The appended curve. Note: This method returns a terminal geometry type of the FMECurve; i.e. one of the leaf classes in the FMECurve inheritance graph. For example, a FMEPath is returned if the geometry truly is a path.