fmeobjects.FMEGeometryTools.convertToLine

FMEGeometryTools.convertToLine(curve)

Returns a line that is created from the given curve. If the curve is a FMELine, it will be returned. If it is a FMEArc, it will be stroked to a line. If the curve is a FMEPath, all segments will be returned as their line representations. If the given curve is None, nothing will be done. This throws an exception if there is an error.

Parameters:

curve (FMECurve or None) – The curve to convert to a line.

Return type:

FMELine or None

Returns:

The line representing the curve.

Raises:

FMEException – An exception is raised if an error occurred.