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 andNone
will be returned. If the destination curve isNone
, it will be set to the source curve.- Parameters:
- 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 theFMECurve
inheritance graph. For example, aFMEPath
is returned if the geometry truly is a path.- Raises:
FMEException – An exception is raised if an error occurred.