fmeobjects.FMEGeometryTools.extendToPoint

FMEGeometryTools.extendToPoint(curve, point)

This method will extend the given curve to the given point. This method will add a straight segment from the curve’s end point to the new point. The returned geometry may or may not be the original object that was passed in. If a different object is returned, the original object will be destroyed. If the point is None, nothing will be done and None will be returned. If the curve is None, but the point is valid, a line will be returned that has one point.

Parameters:
  • curve (FMECurve or None) – The curve to extend with the point or None.

  • point (FMEPoint or None) – The point to extend the curve by, or None.

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 FMELine is returned if the geometry truly is a line.

Raises:

FMEException – An exception is raised if an error occurred.