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 andNonewill be returned. If the curve isNone, but the point is valid, a line will be returned that has one point.- 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 theFMECurveinheritance graph. For example, aFMELineis returned if the geometry truly is a line.- Raises:
FMEException – An exception is raised if an error occurred.