fmeobjects.FMEGeometryTools.extendToCurve

FMEGeometryTools.extendToCurve(destinationCurve, sourceCurve)

Extends the source curve to the destination curve. If one curve is a line or a path with a line at its end, and the other curve is a line or a path with a line at its start, the matching lines will be merged, as long as both share the same geometry attributes. If the curves do not have touching end points, a line will be created to attach them. Appending an arc or appending to an arc will result in a path. If the source curve is None, nothing will be done and None will be returned. If the destination curve is None, it will be set to the source curve.

Parameters:
  • destinationCurve (FMECurve or None) – The curve to extend with source curve.

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

Return type:

FMECurve or None

Returns:

The extended 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.

Raises:

FMEException – An exception is raised if an error occurred.